Skip to content

Does current selenium2lib support selenium grid 2? #49

Closed

Description

@adwu73

Any one has tried this?

Thanks!

Adam

Activity

  1. j1z0 commented on Apr 28, 2012

    @j1z0
    Contributor

    I haven tried but selenium 2 library does support the remote web driver protocol so that should get you at least some Of the way there.

    Cheers,
    Jeremy

    On Apr 28, 2012, at 18:03, adwu73reply@reply.github.com wrote:

    Any one has tried this?

    Thanks!

    Adam


    Reply to this email directly or view it on GitHub:
    #49

  2. adwu73 commented on Apr 28, 2012

    @adwu73
    ContributorAuthor

    Thanks I will give a try and post the result

  3. adwu73 commented on Jul 7, 2012

    @adwu73
    ContributorAuthor

    I finally got time to set up this and give a try. The result is promising, I can use s2l with selenium grid 2 successfully (there is only one capture screen shot issue listed in issue 43). What you need to do is to set up grid 2 hub & node as documented, and use the name open browser capability in release 1.0.1

    Open Browser | | IE | |

  4. j1z0 commented on Jul 7, 2012

    @j1z0
    Contributor

    Nice. :). One feature I was thinking about adding / bringing back us the start server keyword. Which you could use to programmatically start up the grid or any remote server for that matter. Is that something you would use? Or do you have other ways to manage startup of the grid?

  5. adwu73 commented on Jul 8, 2012

    @adwu73
    ContributorAuthor

    when you start the grid, you have to start the grid server as well as the grid node(is this techically possible?). I don't think this process should be a part of the test case. For now, I think I will manage the grid start up seperately.

  6. jollychang commented on Sep 25, 2012

    @jollychang
    Contributor

    @adwu73 is my setting correct?

    hub

    java -jar /home/jollychang/selenium-server-standalone-2.25.0.jar -role hub  
    

    node

    java -jar /home/jollychang/selenium-server-standalone-2.25.0.r  -role webdriver -port 5556 -hub http://localhost:4444/grid/register  
    

    robotframework-selenium2library

    Open Browser  ${HOST}  ${BROWSER}  None  http://127.0.0.1:4444/wd/hub  
    

    WebDriverException: Message: u"Modal dialog present\nBuild info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:08:56'\nSystem info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.34-gentoo-r12', java.version: '1.6.0_24'\nDriver info: driver.version: EventFiringWebDriver\nSession ID: 20947b2d-1ec0-4464-bb68-e09fb7850650" ; Stacktrace: Method newInstance0 threw an error in NativeConstructorAccessorImpl.java

    Grid2 logs

    14:52:19.530 WARN - Exception thrown
    org.openqa.selenium.UnhandledAlertException: Modal dialog present
    Build info: version: '2.25.0', revision: '17482', time: '2012-07-18 21:08:56'
    System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.34-gentoo-r12', java.version: '1.6.0_24'
    Driver info: driver.version: EventFiringWebDriver
    Session ID: f1bd7b8d-1d00-4d00-a4ba-d816c0ed9a95
    at sun.reflect.GeneratedConstructorAccessor25.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:188)
    at org.openqa.selenium.remote.ErrorHandler.createUnhandledAlertException(ErrorHandler.java:169)
    at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:141)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:498)
    at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:242)
    at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.openqa.selenium.support.events.EventFiringWebDriver$2.invoke(EventFiringWebDriver.java:101)
    at $Proxy1.get(Unknown Source)
    at org.openqa.selenium.support.events.EventFiringWebDriver.get(EventFiringWebDriver.java:155)
    at org.openqa.selenium.remote.server.handler.ChangeUrl.call(ChangeUrl.java:38)
    at org.openqa.selenium.remote.server.handler.ChangeUrl.call(ChangeUrl.java:1)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at org.openqa.selenium.remote.server.DefaultSession$1.run(DefaultSession.java:150)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:679)
    14:52:19.531 WARN - Exception: Modal dialog present

  7. adwu73 commented on Sep 25, 2012

    @adwu73
    ContributorAuthor

    I start node like this
     java -jar selenium-server-standalone-2.24.1.jar -role node -hub http://:4444/grid/register

    it seems that you have been hit by another issue, not related to grid2

    Modal dialog present

  8. jollychang commented on Nov 27, 2012

    @jollychang
    Contributor
  9. mithundinil commented on May 21, 2015

    @mithundinil

    How to control robot java class on remote machine (selenium-grid). Please advice to resolve this issue.

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