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

Does current selenium2lib support selenium grid 2? #49

Closed
adwu73 opened this issue Apr 28, 2012 · 9 comments
Closed

Does current selenium2lib support selenium grid 2? #49

adwu73 opened this issue Apr 28, 2012 · 9 comments

Comments

@adwu73
Copy link
Contributor

adwu73 commented Apr 28, 2012

Any one has tried this?

Thanks!

Adam

@j1z0
Copy link
Contributor

j1z0 commented Apr 28, 2012

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

@adwu73
Copy link
Contributor Author

adwu73 commented Apr 28, 2012

Thanks I will give a try and post the result

@adwu73 adwu73 closed this as completed Jul 7, 2012
@adwu73
Copy link
Contributor Author

adwu73 commented Jul 7, 2012

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

@j1z0
Copy link
Contributor

j1z0 commented Jul 7, 2012

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?

@adwu73
Copy link
Contributor Author

adwu73 commented Jul 8, 2012

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.

@jollychang
Copy link
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

@adwu73
Copy link
Contributor Author

adwu73 commented Sep 25, 2012

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

@jollychang
Copy link
Contributor

@mithundinil
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants