Pergunta

I am using a method for seleniumRC driver.select(selectLocator, Optionvalue) How to replace it in selenium web driver?

Foi útil?

Solução

In webdriver you can use following:

new Select(driver.findElement(By.*locator*("*value*"))).selectByVisibleText("text");

Here selectBy also has various methods like selectByIndex, selectByValue.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top