Using selenium

r.wittmann's Avatar

r.wittmann

08 Feb, 2016 08:23 PM

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.

  1. Support Staff 1 Posted by Feodor Fitsner on 08 Feb, 2016 09:34 PM

    Feodor Fitsner's Avatar

    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. 2 Posted by r.wittmann on 09 Feb, 2016 01:04 PM

    r.wittmann's Avatar

    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.

    ERROR: Can't obtain updateLastError method for class com.sun.jna.Native
    

    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).

  3. Support Staff 3 Posted by Feodor Fitsner on 09 Feb, 2016 07:12 PM

    Feodor Fitsner's Avatar

    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#L26

    Build results: https://ci.appveyor.com/project/FeodorFitsner/po

  4. 4 Posted by r.wittmann on 10 Feb, 2016 12:15 PM

    r.wittmann's Avatar

    Very good finding. Thanks for figuring it out.

  5. r.wittmann closed this discussion on 10 Feb, 2016 12:15 PM.

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