Select select = new Select(driver.findElement(By.id("select")));  

  • select.selectByVisibleText(“A”);
  • select.selectByValue(“1”); 
  • select.deselectAll();
  • select.deselectByValue(“1”);
  • select.deselectByVisibleText(“A”);
  • select.getAllSelectedOptions();
  • select.getFirstSelectedOption(); 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2021-12-02
  • 2021-11-20
  • 2022-03-02
  • 2022-12-23
  • 2022-02-12
猜你喜欢
  • 2022-12-23
  • 2021-08-25
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
相关资源
相似解决方案