nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.8k stars 1.31k forks source link

Nightwatch - Timed out after 45 seconds in Windows all OS #1687

Closed punter82 closed 5 years ago

punter82 commented 6 years ago

Hi,

I have been using nightwatch JS on my Mac and it worked awesome without any issues.

So we had to install the same for one of our QA machine which is a windows. I tried to install nightwatch globally or follow the procedure given in this link https://github.com/nightwatchjs/nightwatch/wiki/Windows-Quick-Start but no matter what i try i always get the below error

[C:\dev\nightwatch\node_modules\nightwatch>node nightwatch.js -t examples/tests/n ightwatch.js

[Nightwatch] Test Suite

Running: Demo test NightwatchJS.org

Error retrieving a new session from the selenium server

Connection refused! Is selenium server started? { value: { message: 'Timed out waiting 45 seconds for Firefox to start.\nBuild info: v ersion: \'3.8.1\', revision: \'6e95a6684b\', time: \'2017-12-01T19:05:32.194Z\'\ nSystem info: host: \'SAURABH\', ip: \'192.168.0.103\', os.name: \'Windows 8.1\' , os.arch: \'x86\', os.version: \'6.3\', java.version: \'1.8.0_144\'\nDriver inf o: driver.version: unknown', error: 'unknown error' }, status: 13 }]

So i run the test, Firefox opens and that's it. After 45 secs i get this error. This is the same issue on all windows OS (7, 8.1, 10) . Can someone throw some light on this. I am running selenium standalone 3.8 version, latest nightwatch and latest node js on windows.

straris commented 6 years ago

@punter82 which geckodriver are you using?

punter82 commented 6 years ago

Thanks for your comment @straris I used the latest one with the latest FF browser. Do you recommend any specific version i should use ? Also how do i pass that in to the nightwatch json settings. Thanks again..

straris commented 6 years ago

latest geckoDriver and latest Firefox work for me, don't forget to set enablePassThrough false on the hub and node.

punter82 commented 6 years ago

Thanks. I will give that a shot

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had any recent activity. If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.