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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

SeleniumTest > b_testSendTitle FAILED org.openqa.selenium.WebDriverException: unknown error: INVALID_STATE_ERR #23

Closed
vorburger opened this issue Apr 11, 2018 · 3 comments

Comments

@vorburger
Copy link
Member

@edewit FYI our split (#14) SeleniumTest still sometimes fails for me locally, despite #17.

actually the cause perhaps it's not even the split - it may be machine load related. I just hit below while running it during a boring call 馃槃 while a BlueJeans was taking up some CPU, and when re-running after BJ ended, it passed.

> Task :web:test 

ch.vorburger.minecraft.storeys.web.SeleniumTest > a_testBasicSetUp PASSED

ch.vorburger.minecraft.storeys.web.SeleniumTest > b_testSendTitle FAILED
    org.openqa.selenium.WebDriverException: unknown error: INVALID_STATE_ERR
@edewit
Copy link
Member

edewit commented Apr 11, 2018

might be that the wait is not long enough if the machine is under stress, we need a better solution then waiting for this INVALID_STATE_ERR

@vorburger
Copy link
Member Author

@edewit yeah... although this actually isn't even on a FluentWait<WebDriver> but it's the JavascriptExecutor.executeScript that is causing this; see below. This actually happens on and off locally to me as well, today it was not while BlueJeans was running, but with minishift in the background... and it went away after I retried. Perhaps moving entirely away from JavascriptExecutor.executeScript and just letting a JS Test framework do everything, with clicking on buttons, and FluentWait<WebDriver> to await some grey bar becoming green or red, based on your https://github.com/vorburger/minecraft-storeys-maker/pull/21, is the way to go here.

@vorburger
Copy link
Member Author

https://github.com/vorburger/minecraft-storeys-maker/pull/95 from @edewit will also fix this problem, I suspect.

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

No branches or pull requests

2 participants