Guest User

Untitled

a guest
Feb 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. IWebElement table = driver.FindElement(By.XPath("//*[@id='sandbox-
  2. container1']/div/input"));
  3.  
  4. table.Click();
  5.  
  6. IWebElement el = driver.FindElement(By.XPath("/html/body/div[3]/div[1]"));
  7.  
  8. List<IWebElement> rowEl = new List<IWebElement>(el.FindElements(By.TagName("tr")));
  9.  
  10. List<IWebElement> colEl = new List<IWebElement>(el.FindElements(By.TagName("td")));
  11.  
  12. foreach (IWebElement cols in colEl)
  13. {
  14. if (cols.Text.Equals("5"))
  15. cols.Click();}
Add Comment
Please, Sign In to add comment