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

Cannot find capabilities with browserName=ie when grid hub url specified in -Dremote #529

Closed
baranoff-ivan opened this Issue May 11, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@baranoff-ivan

baranoff-ivan commented May 11, 2017

Preconditions:

Configuration.remote = "<some hub url>";
Configuration.browser = WebDriverRunner.INTERNET_EXPLORER;

Failure when running tests with Selenide:

Caused by: org.openqa.selenium.WebDriverException: Error forwarding the new session cannot find : Capabilities [{nativeEvents=true, acceptSslCerts=true, requireWindowFocus=true, pageLoadStrategy=normal, browserName=ie}]
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
...

Root cause:
Selenium node recognizes capabilities with browserName "internet explorer", but not "ie"

Of course, I could just set browser as below:

Configuration.browser = "internet explorer";

But Selenide has different workarounds for IE which uses isIE() method. And they won't work in such case.

BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue May 11, 2017

selenide#529 Cannot find capabilities with browserName=ie when grid h…
…ub url specified in -Dremote

- Set correct correct IE browser name
- Add ability to set ie browser through "internet explorer" string

BorisOsipov added a commit to BorisOsipov/selenide that referenced this issue May 11, 2017

selenide#529 Cannot find capabilities with browserName=ie when grid h…
…ub url specified in -Dremote

- Set correct correct IE browser name
- Add ability to set ie browser through "internet explorer" string

@asolntsev asolntsev self-assigned this Jul 3, 2017

@asolntsev asolntsev added this to the 4.6 milestone Jul 3, 2017

asolntsev added a commit that referenced this issue Jul 3, 2017

Merge pull request #531 from BorisOsipov/529
#529 Cannot find capabilities with browserName=ie when grid hub url specified
@asolntsev

This comment has been minimized.

Show comment
Hide comment
@asolntsev

asolntsev Jul 3, 2017

Contributor

@baranoff-ivan @BorisOsipov Thank you! Fix with PR #531.

Contributor

asolntsev commented Jul 3, 2017

@baranoff-ivan @BorisOsipov Thank you! Fix with PR #531.

@asolntsev asolntsev closed this Jul 3, 2017

asolntsev added a commit that referenced this issue Jul 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment