Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A method to select an option from list dropdown, example: selectFromList(String option)
- selectFromList(String option) {
- //use xpath or css selector here
- WebElement selectOption = driver.findElement(By.xpath("//table/span/input[@title="+option+"]"))
- selectOption.click()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement