1、按照class定位

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

select.selectByVisibleText("北京市")

2、按照value值定位

select.sekectByValue("tianjing");

3、按照index定位

select.selectByIndex(3);

相关文章:

  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案