Selenium webdriver 如何在组合框或web驱动程序中选择选项。。。。。?

Selenium webdriver 如何在组合框或web驱动程序中选择选项。。。。。?,selenium-webdriver,selenium-rc,Selenium Webdriver,Selenium Rc,我正在使用seleniumRC驱动程序的方法。选择(selectLocator,Optionvalue) 如何在selenium web驱动程序中替换它 在webdriver中,您可以使用以下内容: new Select(driver.findElement(By.*locator*("*value*"))).selectByVisibleText("text"); 这里selectBy还有多种方法,如selectByIndex、selectByValue

我正在使用seleniumRC
驱动程序的方法。选择(selectLocator,Optionvalue)

如何在selenium web驱动程序中替换它

在webdriver中,您可以使用以下内容:

new Select(driver.findElement(By.*locator*("*value*"))).selectByVisibleText("text");
这里selectBy还有多种方法,如selectByIndex、selectByValue