Skip to content

Error trying to run a robot test on safari #615

Closed

Description

@VitoAlbano

I was trying to run some tests that are already working on other browsers on Safari.
I got this error :

[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
1.Login Page Should Have User and Password Required | FAIL |
Parent suite setup failed:
No executable path given, please add one to Environment Variable 'SELENIUM_SERVER_JAR'

Reading on some forums it seems that this it should be something already fixed, i've also added the extension of Selenium on Safari (9.1.1)

Actually i'm using :

robotframework (3.0)
robotframework-selenium2library (1.7.4)
selenium (2.53.5)

What am i missing?

Thanks

Activity

  1. HelioGuilherme66 commented on Jun 23, 2016

    @HelioGuilherme66
    Member

    I think you need to use the java-selenium-standalone.jar (this is not the exact name), and define the shell variable 'SELENIUM_SERVER_JAR' to its path.

  2. VitoAlbano commented on Jun 24, 2016

    @VitoAlbano
    Author

    Yes, this is what i thought , but reading this : https://github.com/SeleniumHQ/selenium/wiki/SafariDriver and then this SeleniumHQ/selenium-google-code-issue-archive#5352 i thought that maybe the safari support was already added to selenium (and selenium2Library) ,that's why i'm asking :)

    I've also found this :https://github.com/robotframework/Selenium2Library/pull/247 that seems to be merged

  3. aaltat commented on Jun 24, 2016

    @aaltat
    Contributor

    Are you running your test from a Mac or from other OS?

  4. VitoAlbano commented on Jun 27, 2016

    @VitoAlbano
    Author

    MAC Os 10.11.5

  5. aaltat commented on Jun 27, 2016

    @aaltat
    Contributor
  6. VitoAlbano commented on Jun 27, 2016

    @VitoAlbano
    Author

    Yes i've followed the getting started part where they ask to install on Safari the selenium plugin (SafariDriver.safariextz ) .
    For the class example i haven't done anything 'cause i'm using robot so i expect i need only to change the configuration for the browser used.
    The only thing which left me surprised is that only until version 2.48 there is this driver for Safari, for newer version there is no Safari exec. Maybe this could be the problem?

  7. aaltat commented on Jun 28, 2016

    @aaltat
    Contributor

    I don't own a Mac, so I haven't encountered your problem before. But looking the code and the selenium API, the S2L is creating the driver object as instructed in the SafariDriver pages. Therefore I would assume that one must set the SELENIUM_SERVER_JAR in the $PATH.

  8. VitoAlbano commented on Jun 28, 2016

    @VitoAlbano
    Author

    Ok it seems that even if the issue is closed on Selenium repo(SeleniumHQ/selenium-google-code-issue-archive#5352) there is no way to use the Safari webdriver without adding the SELENIUM_SERVER_JAR variable.

    Thanks :)

  9. aaltat commented on Jun 28, 2016

    @aaltat
    Contributor

    It might be good idea to open a new issue in the selenium side

  10. VitoAlbano commented on Jul 7, 2016

    @VitoAlbano
    Author

    Re opened and get the answer : SeleniumHQ/selenium#2436 :)

  11. aaltat commented on Jul 7, 2016

    @aaltat
    Contributor

    Good to know, thank you from input.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions