Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. A method to select an option from list dropdown, example: selectFromList(String option)
  2.  
  3. selectFromList(String option) {
  4. //use xpath or css selector here
  5. WebElement selectOption = driver.findElement(By.xpath("//table/span/input[@title="+option+"]"))
  6. selectOption.click()
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement