Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Wait For Condition Timer May Block Continuously #144

Open
mikeastarb opened this issue Sep 8, 2016 · 1 comment
Open

Wait For Condition Timer May Block Continuously #144

mikeastarb opened this issue Sep 8, 2016 · 1 comment
Assignees

Comments

@mikeastarb
Copy link
Collaborator

https://github.com/FINRAOS/JTAF-ExtWebDriver/blob/master/src/main/java/org/finra/jtaf/ewd/timer/WaitForConditionTimer.java#L89

My team discovered today that, if the execute method of the callback blocks/hangs infinitely, this wait will also block/hang (waitForElementPresent ended up hanging on webdriver.findElement, which was waiting on IE to stop being busy). Our solution is to replace this logic with an ExecutorService and Future. This will still timeout if the passed in callable fails to return at all.

@mikeastarb mikeastarb self-assigned this Sep 8, 2016
@MADiep
Copy link

MADiep commented Nov 2, 2016

You may want to look into the WebDriverWait class while you're at it. This is WebDriver's own implementation of performing explicit waits; it should make it a little easier to maintain if we can delegate that logic to the Selenium team.

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

No branches or pull requests

2 participants