The method timeouts is undefined for the type webdriver.op | Selenium Forum
M
Posted on 04/05/2016
Sir , i import <Module21_Selenium_Testng_Hybrid> to eclipse...

Now if i check keyword.java, there's this error [b:2w3aqa1l]"the method timeouts() is undefined for the type webdriver.options"[/b:2w3aqa1l]

[b:2w3aqa1l]for line :driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);[/b:2w3aqa1l]

PLease refer snapshot:

M
Replied on 04/05/2016

it's

timeout()

no 's'


M
Replied on 05/05/2016

Sir, if I update it like
Driver.manage.window.
I don't get timeout option prompted in eclipse


M
Replied on 05/05/2016

why are you adding a 'window'?


M
Replied on 05/05/2016

Did a mistake... sir....

[b:31wo6twy]PLease refer attachment, no Timeout option in prompting by eclipse:[/b:31wo6twy]

Responsive image

M
Replied on 05/05/2016

[quote:35ru99he]driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
[/quote:35ru99he]

if the the above statement is giving you an error then download selenium jar again.


M
Replied on 06/05/2016

Sir,

i re downloaded 2.5.3[ Earlier also was 2.5.3].. set Add external jars to newly downloaded jars...

Still same issue...[b:3u0qchio] i dont get Timeout prompted..[/b:3u0qchio]
Have used [b:3u0qchio]import java.util.concurrent.TimeUnit;[/b:3u0qchio]

What else can i try to make this work fine ?


M
Replied on 06/05/2016

send me the java file.


M
Replied on 06/05/2016

Attaching


M
Replied on 07/05/2016

what is this?

driver = new EventFiringWebDriver(wbdv);


that is why its not working.


M
Replied on 29/05/2017

Hey, Ashish, I am too getting the same error in the same keywords.java file when I Imported POM module22 code into my eclipse.

I didn't find the solution for it.

Responsive image

M
Replied on 29/05/2017

try

[color=#FF0000:1jhfvi1b]timesout()[/color:1jhfvi1b]