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

Timeouts issue- implicit.wait is doubled #2167

Closed
zuzeac opened this issue Jul 14, 2020 · 2 comments
Closed

Timeouts issue- implicit.wait is doubled #2167

zuzeac opened this issue Jul 14, 2020 · 2 comments

Comments

@zuzeac
Copy link

zuzeac commented Jul 14, 2020

Hi,
I'm are using the following timeouts config in serenity.conf:

webdriver {
  driver = chrome
  timeouts {
    implicitlywait = 10000
  }
}

While trying to wait for an element, I observed that driver will wait the implicitwait X2, meaning 20000ms

WaitUntil.the(target, isVisible()) will wait for 20000ms in this case. Should wait for only 10000ms as it is configured?
I'm assuming there is a bug somewhere in the timeouts or I didn't get it how to use it :)

@wakaleo
Copy link
Member

wakaleo commented Jul 14, 2020

Can you dig into the code to see?

@zuzeac
Copy link
Author

zuzeac commented Jul 15, 2020

I've tried digging, but didn't manage to identify where could the issue be.
To reproduce it you can just wait for an element which is not present in the page. WaitUntil.the(addATargetWhichIsNotInThePage, isVisible())

Forgot to mention the library version:

<serenity.version>2.2.8</serenity.version> <serenity.maven.version>2.2.8</serenity.maven.version> <serenity.cucumber.version>2.2.2</serenity.cucumber.version>

@wakaleo wakaleo closed this as completed Feb 12, 2022
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