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

Arguments to webdriver are not being pass to the selenium server #35

Closed
mribichich opened this issue Feb 9, 2017 · 5 comments
Closed
Assignees

Comments

@mribichich
Copy link

mribichich commented Feb 9, 2017

Hi there, it seems that the args pass to the webdriver are not being used later on.

For example I tried to use --seleniumPort 4445 and it seems that it works at the beginning, but at the end the selenium server uses 4444

this works:

./node_modules/webdriver-manager/bin/webdriver-manager start --seleniumPort 4445

Configuration:

webDriverStart: {
    args: ['--seleniumPort 4445']
},

Here are the logs:

[18:36:52] gulp-angular-protractor - The plugin is retrieved and will start soon
[18:36:52] gulp-angular-protractor - We will try to start and stop automatically the WebDriver server
[18:36:52] gulp-angular-protractor - The selenium address is: http://localhost:4445/wd/hub
[18:36:52] gulp-angular-protractor - The selenium address used is: http://localhost:4445/wd/hub
[18:36:52] gulp-angular-protractor - The selenium shutdown address used is: http://localhost:4445/selenium-server/driver/?cmd=shutDownSeleniumServer
[18:36:52] gulp-angular-protractor - We have the config file to the following path: protractor.conf.js
[18:36:52] gulp-angular-protractor - Webdriver standalone will be updated
webdriver-manager: using global installed version 10.2.8
[18:36:53] I/file_manager - creating folder node_modules\webdriver-manager\selenium
[18:36:53] I/downloader - selenium standalone: downloading version 2.53.1
[18:36:53] I/downloader - curl -o node_modules\webdriver-manager\selenium/selenium-server-standalone-2.53.1.jar https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar
[18:36:53] I/downloader - chromedriver: downloading version 2.25
[18:36:53] I/downloader - curl -o node_modules\webdriver-manager\selenium/chromedriver_2.25win32.zip https://chromedriver.storage.googleapis.com/2.25/chromedriver_win32.zip
[18:36:53] I/downloader - geckodriver: downloading version v0.11.1
[18:36:53] I/downloader - curl -o node_modules\webdriver-manager\selenium/geckodriver-v0.11.1-win64.zip https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-win64.zip
[18:36:58] I/update - chromedriver: unzipping node_modules\webdriver-manager\selenium\chromedriver_2.25win32.zip
[18:37:03] I/update - geckodriver: unzipping node_modules\webdriver-manager\selenium\geckodriver-v0.11.1-win64.zip
[18:37:12] gulp-angular-protractor - Webdriver standalone is updated
[18:37:12] gulp-angular-protractor - Webdriver standalone server will be started
[18:37:13] webdriver-manager: using global installed version 10.2.8

[18:37:13] [18:37:13] I/start - java -Dwebdriver.chrome.driver=node_modules\webdriver-manager\selenium\chromedriver_2.25.exe -Dwebdriver.gecko.driver=node_modules\webdriver-manager\selenium\geckodriver-v0.11.1.exe -jar node_modules\webdriver-manager\selenium\selenium-server-standalone-2.53.1.jar -port 4444

[18:37:13] [18:37:13] I/start - seleniumProcess.pid: 17964

[18:37:14] 18:37:14.433 INFO - Launching a standalone Selenium Server

[18:37:14] 18:37:14.856 INFO - Java: Oracle Corporation 25.121-b13

[18:37:14] 18:37:14.856 INFO - OS: Windows 10 10.0 x86

[18:37:14] 18:37:14.864 INFO - v2.53.1, with Core v2.53.1. Built from revision a36b8b1

[18:37:14] 18:37:14.937 INFO - Driver class not found: com.opera.core.systems.OperaDriver

[18:37:14] 18:37:14.938 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered

[18:37:14] 18:37:14.944 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform WIN10

[18:37:14] 18:37:14.945 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
18:37:14.945 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered

[18:37:15] 18:37:15.606 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub

[18:37:15] 18:37:15.606 INFO - Selenium Server is up and running

thanks!

@rochejul rochejul self-assigned this Feb 10, 2017
@rochejul
Copy link
Owner

Hi

Could you tell me on which version are you using the plugin ?

Can you give me a project as attachment to check it please ?

Many thanks

Regards

@mribichich
Copy link
Author

I'm using the latest protractor 5.1.1. Either way I checked with the webdriver version 10, the one your plugin installs, and with the command line works.

https://github.com/mribichich/angular-protractor

@rochejul
Copy link
Owner

Hummm can you try please:

webDriverStart: {
    args: ['--seleniumPort', '4445']
},

Instead

webDriverStart: {
    args: ['--seleniumPort 4445']
},

@rochejul
Copy link
Owner

Hi

Have you try to change the configuration like the example below please ?

Many thanks

@mribichich
Copy link
Author

mribichich commented Feb 22, 2017 via email

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

No branches or pull requests

2 participants