Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

select class in selenium

Select objSelect = new Select(driver.findElement(By.id(Element_ID)));
objSelect.selectByIndex(index);
objSelect.selectByIndex(index);
// Or can be used as
objSelect.selectByVisibleText(text);
objSelect.selectByVisibleText(text);
// Or can be used as
objSelect.selectByValue(value);
objSelect.selectByValue(value);
 
PREVIOUS NEXT
Tagged: #select #class #selenium
ADD COMMENT
Topic
Name
9+7 =