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

Chrome is launched instead of phantomjs in 6.13.0 #355

Closed
Emilez opened this issue Apr 11, 2018 · 2 comments
Closed

Chrome is launched instead of phantomjs in 6.13.0 #355

Emilez opened this issue Apr 11, 2018 · 2 comments

Comments

@Emilez
Copy link

Emilez commented Apr 11, 2018

Expected Behavior

PhantomJS can be started without problems.

When I try to start phantomjs I get an error message related to Chrome "loading of unpacked extensions is disabled by the administrator".

Current Behavior

When I try to start phantomjs I get an error message related to Chrome "loading of unpacked extensions is disabled by the administrator" and the chrome browser is launched instead.

The same issue is describer here although he uses wdio and I use the stand-alone version of webdriverio.
#349
but I think the root cause is selenium-standalone as the writer in the linked issue points out.

Steps to Reproduce

Provide an unambiguous set of steps to reproduce this bug. Include commands that you used
in the shell, or snippets of how you are using the JavaScript API.

  1. Start a selenium test with phantomjs browser and webdriverio stand-alone version.

Logs

desired configsent to webdriverio:
{ browserName: 'phantomjs',
'phantomjs.binary.path': 'C:\Utveckling\gitProd\mig-selenium-trunc\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe' }

Your Environment

  • Version of selenium-standalone that you are using: 6.13.0
  • Is there another tool calling selenium-standalone on your behalf: webdriverio standalone
  • System/platform: Windows 10
  • Other details that might be important:
    "webdriverio": "4.12.0",
    "phantomjs-prebuilt": "2.1.16"
@Emilez
Copy link
Author

Emilez commented Apr 11, 2018

I verified that it is between version 6.12.0 and 6.13.0 that this issue is introduced. Probably a selenium-standalone issue but could also be an integration issue between something else and selenium-standalone I guess. But probably selenium-standalone.

@Emilez
Copy link
Author

Emilez commented Apr 12, 2018

Okay, selenium does not aupport phantomjs anymore as of 3.8.1
SeleniumHQ/selenium#5295

However there seems to be a workaround for those who know how to do it.

"
Given that the PhantomJS driver in Java was a third-party jar that was packaged in the standalone server as a convenience, you should be able to include the same jar as a dependency in your own project and get that functionality back. Moreover, since the Java PhantomJS driver was not maintained by the Selenium project, I’m not entirely sure how it could’ve been marked as deprecated before removal. Finally, this would only apply to the Java bindings, since the phantomJS driver in the other language bindings is part of the Selenium project.Disclaimer: This isn’t an “official” project position. You asked for my take, so I’m giving it. Now I’m going back to my holiday.

"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants