Uh oh!
There was an error while loading. Please reload this page.
Fix #203 - #210
Conversation
TikhomirovSergey
commented
Jun 26, 2015
After the coversation with @Simon-Kaz I'm going to improve the new annotation @WithTimeout(time = 20, unit = TimeUnit.SECONDS) |
Jonahss
commented
Jun 26, 2015
oh I like this. Definitely makes it easier to define tests. Will merge when @TikhomirovSergey and @Simon-Kaz gives thumbs-up |
TikhomirovSergey
commented
Jun 26, 2015
I've finished |
...and unused import
Simon-Kaz
commented
Jun 29, 2015
👍 Going to use this a lot :) |
Jonahss
commented
Jun 29, 2015
super. |
I used What I did in the driver wrapper class is like below. publicvoidsetTimeOut(longimplicitlyWaitTimeOut, TimeUnittimeUnit) {
timeOutDuration.setTime(implicitlyWaitTimeOut, timeUnit);
getDriver().manage().timeouts().implicitlyWait(timeOutDuration.getTime(), timeOutDuration.getTimeUnit());
getDriver().manage().timeouts().pageLoadTimeout(timeOutDuration.getTime(), timeOutDuration.getTimeUnit());
}here below is the log when trying to finding an element for accessibility named "我的". In the log, there are two timeouts requested. one is using
Could you tell me why timeout 0 is requested instead of my custom set (10)? and what is the correct way doing global wait timeout for all PageObjects? |
Change list:
Use case:
Use case:
If it is extramally needed to change default time for the waiting of elements the following is possible: