Using selenium
According to http://www.appveyor.com/docs/installed-software selenium is installed on build worker.
Is there an example how to start the selenium instance.
I'd like to use it with the chrome driver, which seems to be available on build worker as well.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 08 Feb, 2016 09:34 PM
There is no Selenium server installed on build workers, but there are Selenium web drivers available which, actually, don't require a Selenium server.
Take a look at this sample repository with Selenium tests: https://github.com/FeodorFitsner/selenium-tests
2 Posted by r.wittmann on 09 Feb, 2016 01:04 PM
Thanks Feodor, but I'm looking into running webdriverio on node, which requires a selenium server.
I created a test repo at https://github.com/RainerAtSpirit/po that installs the npm
selenium-standalone
package and runs it as background tasks.https://ci.appveyor.com/project/RainerAtSpirit/po
All tests pass, but there are some odd error at the end of each test spec.
I found a similiar issue reported when using protractor (https://appveyor.tenderapp.com/discussions/questions/1657-protracto...), but unfortunately there was no solution only a workaround (using browserstack).
Support Staff 3 Posted by Feodor Fitsner on 09 Feb, 2016 07:12 PM
I've been able to run the tests by starting Selenium server with
-Djna.nosys=true
option: https://github.com/FeodorFitsner/po/blob/master/appveyor.yml#L26Build results: https://ci.appveyor.com/project/FeodorFitsner/po
4 Posted by r.wittmann on 10 Feb, 2016 12:15 PM
Very good finding. Thanks for figuring it out.
r.wittmann closed this discussion on 10 Feb, 2016 12:15 PM.