Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing any web element is doing an implicit wait #108

Closed
andrew-sumner opened this issue Mar 3, 2016 · 2 comments
Closed

Accessing any web element is doing an implicit wait #108

andrew-sumner opened this issue Mar 3, 2016 · 2 comments

Comments

@andrew-sumner
Copy link

Whenever I call a method on a WebElement field it is performing an implicit wait.

I have not configured the application to perform implicit waits as we always use explicit waits.

Recommended advice is not to mix explicit and implicit waits (see http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp), we perform explicit waits using WebDriverWait when needed.

Ideally I would like HtmlElements to respect selenium's default behavior (ie let selenium error immediately if no explicit wait configured, or if implicit wait configured then after than time has elapsed) and only perform customized wait if @timeout annotation is set.

@andrew-sumner
Copy link
Author

PR created

@lanwen
Copy link
Contributor

lanwen commented Mar 7, 2016

This breaks behaviour that already used by almost all users of htmlelements, so if you need to set this timeout to 0, just use -Dwebdriver.timeouts.implicitlywait=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants