webdriver - Unable to use until method -


i trying wait element in selenium webdriver , following happens

i create wait:

webdriverwait delay = new webdriverwait(driver, 5); 

and use it:

delay.until(expectedconditions.visibilityofelementlocated(by.id("someid"))); 

but intellij idea keeps marking until() red , saying "cannot resolve method until()". need help, please.

change wait.until(expectedconditions.visibilityofelementlocated(by.id("someid")));

to

delay.until(expectedconditions.visibilityofelementlocated(by.id("someid")));

also refer selenium documentation, has example on explicit wait- http://docs.seleniumhq.org/docs/04_webdriver_advanced.jsp#explicit-and-implicit-waits


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -