Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java selenium select

# for html/css - create select class, create variable
# then find element for variable - use xpath, id, className etc
Select variable = new Select(driver.findElement(By.xpath("path to element")));

# then, assign element to variable using select
# option 1:
variable.selectByValue("");
# option 2:
variable.selectByVisibleText("");
# option 3:
variable.selectByIndex("");
 
PREVIOUS NEXT
Tagged: #java #selenium #select
ADD COMMENT
Topic
Name
8+5 =