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

Document the usage of "timeout" helper #167

Open
khaledkbadr opened this issue Mar 1, 2016 · 3 comments
Open

Document the usage of "timeout" helper #167

khaledkbadr opened this issue Mar 1, 2016 · 3 comments

Comments

@khaledkbadr
Copy link

Hello I'm trying to test OAUTH Facebook app. App pops up and everything is good unless driver times out before I get to type my credentials. It seems the problem relies that the Meteor.loginWithFacebook asynchronous function exceeds timeout. How can I increase this timeout?

Error response status: 28, , ScriptTimeout - A script did not complete before its timeout expired. Selenium error: asynchronous script timeout: result was not received in 5 seconds (Session info: chrome=48.0.2564.116) (Driver info: chromedriver=2.20.353124 (035346203162d32c80f1dce587c8154a1efa0c3b),platform=Linux 3.13.0-79-generic x86_64)

I run my tests using gagarin --settings=dev_settings.json -t 60000 -T 60000 -v

@apendua
Copy link
Member

apendua commented Mar 1, 2016

Try something like this:

client
  .timeout(10000)
  .promise(...); // your login promise goes here

@apendua
Copy link
Member

apendua commented Mar 22, 2016

@khaledkbadr Did it solve your problem?

@khaledkbadr
Copy link
Author

Yeah, thanks. I'm very grateful for the tip!

@apendua apendua changed the title Webdriver timeout Document the usage of "timeout" helper Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants