Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

select in selenium java

// Create object of the Select class
Select se = new Select(driver.findElement(By.xpath("//*[@id='oldSelectMenu']")));
 
// Select the option with value "6"
se.selectByValue("6");
Source by www.toolsqa.com #
 
PREVIOUS NEXT
Tagged: #select #selenium #java
ADD COMMENT
Topic
Name
7+2 =