Exemplo n.º 1
0
        private TimecardEntry GetTimecardEntry(IWebElement row)
        {
            IList<IWebElement> cells = row.FindElements(By.XPath("td"));

            var tce = new TimecardEntry
            {
                TimeCode = cells[3].Text,
                Hours = cells[4].Text,
                Task = cells[7].Text,
                Project = cells[8].Text,
                Initiative = cells[9].Text
            };

            return tce;
        }
Exemplo n.º 2
0
 private void WriteTimecardEntry(IWebElement row, TimecardEntry timecardEntry)
 {
     IList<IWebElement> cells = row.FindElements(By.XPath("td"));
     var cellInput = Driver.FindElement(By.Id("TLMWidgets_TimeEntry_DurationTextBox_1"));
     cellInput.SendKeys("10.00");
 }