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

waitForAngularRequestsToFinish error 'asynchronous script timeout: result was not received in 10 seconds" #79

Closed
d0mu opened this issue Jan 16, 2019 · 7 comments

Comments

@d0mu
Copy link

d0mu commented Jan 16, 2019

Hi!

I've been using successfully the call waitForAngularRequestsToFinish() in my tests until December. I've just restarted the project and it doesn't work anymore (same code, same Angular version 5)
I get the error: 'asynchronous script timeout: result was not received in 10 seconds'

Any clue what would be the cause or what to look for - whether if it is the testing framework or the app.

Thanks!

@paul-hammant
Copy link
Owner

Can you make a reproduction for me? Snip away at your proprietary lines, and otherwise obfuscate things so that I can run a test and see it not working?

@d0mu
Copy link
Author

d0mu commented Jan 18, 2019

Thanks for your reply, Paul.

I'm thinking about a way to share the code with you so you can reproduce the issue.
It will require to send you credentials via e-mail and to probably to whitelist your IP address. It's an online banking app and it has a 2 factor authentication (cred+ code). Would this be ok with you?

@paul-hammant
Copy link
Owner

Nice idea - it may take many many attempts to resolve it that way though, with no guarantees. leaving you org nervous about the whitelisted IP for days at a time.

@paul-hammant
Copy link
Owner

@d0mu - how's it going re this ?

@sudharsan-selvaraj
Copy link

@d0mu @paul-hammant The issue is, if any of the API call made by the application exceeds 10 seconds selenium will throw ScriptTimeOut Error. To increase the wait time of asynchronous scripts, increase the wait time usingdriver.manage().timeouts().setScriptTimeout(15, TimeUnit.SECONDS);. Hope this helps!

@paul-hammant
Copy link
Owner

I prefer within() and without() of FluentSelenium, myself :)

@paul-hammant
Copy link
Owner

@d0mu ... I'm going to close this issue in the absence of an update from you.

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

3 participants