문제

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

도움이 되었습니까?

해결책

In webdriver you can use following:

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

Here selectBy also has various methods like selectByIndex, selectByValue.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top