Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. <label id="choose" for="options">01</label>
  2.  
  3. driver.findElement(By.xpath("//*[@id="choose"]")).sendKeys("01");
  4.  
  5. Select hr=new Select(driver.findElement(By.id("choose")));
  6. hr.selectByValue("04");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement