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

Steward should fail or warn if not-existing browser selected #9

Closed
MartinKristof opened this issue May 11, 2015 · 0 comments · Fixed by #15
Closed

Steward should fail or warn if not-existing browser selected #9

MartinKristof opened this issue May 11, 2015 · 0 comments · Fixed by #15
Assignees

Comments

@MartinKristof
Copy link

If you make a typo in browser name, steward does not warn you and attempts to start with given (not existing) browser, what leads to weird error from selenium webdriver (it obviously tries to start some random/default browser, Opera in my case).

./steward.php run-tests dev3 thisisnotabrowser
Steward 1.0.0 is running the tests... Just for you <3!
Browser: thisisnotabrowser
Environment: dev3
Selenium server (hub) url: http://localhost:4444, trying connection...OK

...

[2015-05-11 11:38:32]: Initializing "thisisnotabrowser" WebDriver for "Lmc\Jobs\Elite\FooBarTest::foo"
PHP Fatal error:  Uncaught exception 'UnknownServerException' with message 'Unable to find executable for product Opera Desktop' in /media/martin/vagrant-project/Project/vagrant-lmc/repos/vpv.lmc.cz/selenium-tests/vendor/facebook/webdriver/lib/WebDriverExceptions.php:79
Stack trace:
#0 /media/martin/vagrant-project/Project/vagrant-lmc/repos/vpv.lmc.cz/selenium-tests/vendor/facebook/webdriver/lib/remote/HttpCommandExecutor.php(268): WebDriverException::throwException(13, 'Unable to find ...', Array)
#1 /media/martin/vagrant-project/Project/vagrant-lmc/repos/vpv.lmc.cz/selenium-tests/vendor/facebook/webdriver/lib/remote/RemoteWebDriver.php(81): HttpCommandExecutor->execute(Object(WebDriverCommand))
#2 /media/martin/vagrant-project/Project/vagrant-lmc/repos/vpv.lmc.cz/selenium-tests/vendor/lmc/steward/src/Listener/WebdriverListener.php(128): RemoteWebDriver::create('http://localhos...', Object(DesiredCapabilities), 120000, 3600000)
#3 /media/martin/vagrant-project/Project/vagrant-lmc/repos/vpv.lmc.cz/selenium-tests/vendor/lmc/ste in /media/martin/vagrant-project/Project/vagrant-lmc/repos/vpv.lmc.cz/selenium-tests/vendor/facebook/webdriver/lib/WebDriverExceptions.php on line 79
@OndraM OndraM self-assigned this May 22, 2015
OndraM added a commit to OndraM/steward that referenced this issue May 22, 2015
OndraM added a commit to OndraM/steward that referenced this issue May 22, 2015
OndraM added a commit to OndraM/steward that referenced this issue May 22, 2015
OndraM added a commit to OndraM/steward that referenced this issue May 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants