Protractor: timed out after 10000 msec waiting for spec to complete
Is there a way in Protractor/Selenium to change test running timeout?
Yes :) You can do it via the allScriptsTimeout
in your Protractor config (from Protractor FAQ)
You can also set the defaultTimeoutInterval
in jasmineNodeOpts
option (from Protractor referenceConf.js)
Why am I getting the error so often? Is there anything wrong with my tests? Most of the doesn't seem complicated or long running. Again, on local machine it's almost always fine.
Hard to say without seeing your tests. The example you provided looks good to me.
Is your project an angularjs project? Are you using any $interval or $timeout service somewhere? If so, try to use $interval instead of $timeout and try to adjust the optional 'count' parameter to be 1, for example (https://docs.angularjs.org/api/ng/service/$interval#usage).I had recently a similar problem and I solved it this way.
I solved it using a different property of config
file, which I didn't see mentioned in answers above.
getPageTimeout : 100000 //in millis, i.e., 100 secs