jasmine / jasmine-browser-runner

Serve and run your Jasmine specs in a browser
50 stars 25 forks source link

Question/Issue: Does jasmine-browser-runner support with selenium-webdriver 4.3+ well ? #23

Closed thiensubs closed 2 years ago

thiensubs commented 2 years ago

Hi Team, I saw the jasmine-browser-runner with package.json lock the selenium-webdriver at ^4.1.0. In my project I try to install and use the selenium-webdriver from 4.3+, I got the problem the runner can not connect to jasmine-server and got a Timeout error message.

A summary of some investigations into the issue is provided below.

For Selenium-webdriver: v4.2 will connect to the node server through 127.0.0.1 with Port v4.3 will connect to the node server through the loopback address localhost with Port, somehow the node request can not connect to the loopback address, it will wait until timeout. And that is why we got the Timeout error message.

After trying deeper code changes of v4.2 and v4.3, I saw the code change like the picture below image

Any suggestions on how to solve these issues would be greatly appreciated.

Regards,

sgravrock commented 2 years ago

As far as I know, jasmine-browser-runner is compatible with selenium-webdriver 4.3. It works on my machine. Additionally, we run nightly tests of both jasmine-browser-runner itself and jasmine-core using jasmine-browser-runner. Those tests use the latest selenium-webdriver 4.x because they don't pin dependency versions, and I didn't notice any failures when 4.3 was the latest version.

It could be that there's either something about your computer or something about your project that's relevant to the problem.

Some things you might check:

sgravrock commented 2 years ago

I also just noticed that the error message you reported is "the runner can not connect to jasmine-server". That message doesn't come from jasmine-browser-runner.

sgravrock commented 2 years ago

Closing due to inactivity. Feel free to open a new issue with a link to a repo containing a minimal, complete, working example of the problem if you still want help.