Can anyone help me out how to run selenium test cases on opera 11.01 and below version using Selnium remote Driver?

334 views
Skip to first unread message

Namratha VR

unread,
Jun 4, 2012, 12:50:49 AM6/4/12
to Selenium Users
I was trying to run very simply perl test case in opera browser 11.01
and below versions like 11.00, 10.64 and others, even if i add
"opera.profile", "opera.port" and "opera.binary" capabilities that are
mentioned in opera driver site for 11.01 below versions even then its
not running the tests. Its launching the browser but not navigating to
particular address since driver object is not create.

Sample program:
use Selenium::Remote::Driver;
my $driver = new Selenium::Remote::Driver('browser_name' =>
'opera','extra_capabilities' => {'opera.binary' =>
'operawrapper','opera.profile' => '','opera.port' =>
'-1','opera.logging.level' => 'FINE',},);
$driver->get("http://www.google.com/");
print $driver->get_title();
$driver->quit();

Is it possible to run tests on opera 10 and 9 using operadriver?

Same test case is working fine form 11.10 to latest version of opera.

Can we run those tests properly in selenium-driver, i tried with
seleniumRC its working fine there.

Selenium version:Selenium-Remote-Driver-0.15 and selenium-server-
standalone-2.20.0
OS:Linux(ubuntu)
Browser:Opera
Browser version:11.01 and below

Krishnan Mahadevan

unread,
Jun 4, 2012, 12:41:05 PM6/4/12
to seleniu...@googlegroups.com
Namratha,



Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-users?hl=en.


Lukus

unread,
Jun 4, 2012, 10:20:06 PM6/4/12
to seleniu...@googlegroups.com
I am able to use Selenium 2.11 for instances of Opera 10.50 and 10.60 on Windows.  The only thing I set via DesiredCapabilities is operabinary.  There's a problem using any of the Opera 9 versions with WebDriver that has to do with the communication protocol to the browser.  I'd have to go back and find my research results, but prob save you some time researching it by letting you know it won't work.  

Have not tested this on Ubuntu.

DesiredCapabilities capabilities = DesiredCapabilities.opera();
capabilities.setCapability("opera.binary","/path/to/opera");
WebDriver driver = new OperaDriver(capabilities);


Namratha VR

unread,
Jun 5, 2012, 12:32:22 AM6/5/12
to seleniu...@googlegroups.com
Hi,

Yes i followed all those step mentioned in OperaDriver wiki for older versions of opera it works fine till 11.50 but for 11.01 onwards its just launching the opera browser and not navigating to the address.

I have set wrapper script for opera.binary even then its not working.

error log appeared:
12:33:21.576 INFO - Executing: org.openqa.selenium.remote.server.handler.Status@32bd65 at URL: /status)
12:33:21.576 INFO - Executing: org.openqa.selenium.remote.server.handler.Status@32bd65 at URL: /status)
12:33:21.577 INFO - Done: /status
12:33:21.577 INFO - Done: /status
12:33:21.580 INFO - Executing: [new session: {opera.binary=/home/likewise-open/VITBDC/na..., platform=ANY, opera.launcher=/.launcher, javascriptEnabled=true, acceptSslCerts=true, opera.host=localhost, browserName=opera, proxy={httpProxy=localhost:8080, pr..., opera.logging.level=FINE, opera.profile=, opera.port=-1, version=}] at URL: /session)
12:33:21.580 INFO - Executing: [new session: {opera.binary=/home/likewise-open/VITBDC/na..., platform=ANY, opera.launcher=/.launcher, javascriptEnabled=true, acceptSslCerts=true, opera.host=localhost, browserName=opera, proxy={httpProxy=localhost:8080, pr..., opera.logging.level=FINE, opera.profile=, opera.port=-1, version=}] at URL: /session)
12:33:21.583 CONFIG - Opera arguments: [-autotestmode]
12:33:21.583 CONFIG - Opera arguments: [-autotestmode]
12:33:21.583 CONFIG - launcher arguments: [-host, 127.0.0.1, -port, 2544, -console, -verbosity, FINE, -profile, desktop, -backend, software, -bin, /home/likewise-open/VITBDC/namrathar/operawrapper, -autotestmode]
12:33:21.583 CONFIG - launcher arguments: [-host, 127.0.0.1, -port, 2544, -console, -verbosity, FINE, -profile, desktop, -backend, software, -bin, /home/likewise-open/VITBDC/namrathar/operawrapper, -autotestmode]
12:33:21.659 DEBUG - launcher: Operalauncher starting with the following configuration:
12:33:21.659 DEBUG - launcher: Operalauncher starting with the following configuration:
12:33:21.659 DEBUG - launcher: -bin: /home/likewise-open/VITBDC/namrathar/operawrapper
12:33:21.659 DEBUG - launcher: -bin: /home/likewise-open/VITBDC/namrathar/operawrapper
12:33:21.659 DEBUG - launcher: -host: 127.0.0.1
12:33:21.659 DEBUG - launcher: -host: 127.0.0.1
12:33:21.660 DEBUG - launcher: -port: 2544
12:33:21.660 DEBUG - launcher: -port: 2544
12:33:21.666 DEBUG - Waiting for launcher connection on port 2544
12:33:21.666 DEBUG - Waiting for launcher connection on port 2544
12:33:21.668 DEBUG - launcher: Blank screenshot has MD5: 0x6f5e1a4118e2d7f6f5f4a3a0ba14144c
12:33:21.668 DEBUG - launcher: Blank screenshot has MD5: 0x6f5e1a4118e2d7f6f5f4a3a0ba14144c
12:33:21.668 DEBUG - opera: [INFO] --> Entering LauncherRunner::run
12:33:21.668 DEBUG - opera: [INFO] --> Entering LauncherRunner::run
12:33:22.668 DEBUG - Got launcher connection from /127.0.0.1:36961
12:33:22.668 DEBUG - Got launcher connection from /127.0.0.1:36961
12:33:22.668 DEBUG - Connected with launcher on port 2544
12:33:22.668 DEBUG - Connected with launcher on port 2544
12:33:22.669 CONFIG - Capabilities [{platform=ANY, opera.binary=/home/likewise-open/VITBDC/namrathar/operawrapper, acceptSslCerts=true, javascriptEnabled=true, opera.host=localhost, opera.idle=false, browserName=opera, opera.autostart=true, opera.logging.file=null, opera.guess_binary_path=true, opera.logging.level=FINE, opera.profile=com.opera.core.systems.OperaProfile@19f03d7, version=, opera.launcher=/.launcher, proxy={httpProxy=localhost:8080, proxyType=manual}, opera.display=null, opera.product=core-gogi, opera.arguments=, opera.no_quit=false, opera.backend=software, opera.port=7001, opera.no_restart=false}]
12:33:22.669 CONFIG - Capabilities [{platform=ANY, opera.binary=/home/likewise-open/VITBDC/namrathar/operawrapper, acceptSslCerts=true, javascriptEnabled=true, opera.host=localhost, opera.idle=false, browserName=opera, opera.autostart=true, opera.logging.file=null, opera.guess_binary_path=true, opera.logging.level=FINE, opera.profile=com.opera.core.systems.OperaProfile@19f03d7, version=, opera.launcher=/.launcher, proxy={httpProxy=localhost:8080, proxyType=manual}, opera.display=null, opera.product=core-gogi, opera.arguments=, opera.no_quit=false, opera.backend=software, opera.port=7001, opera.no_restart=false}]
12:33:22.670 DEBUG - Instructing launcher to start Opera...
12:33:22.670 DEBUG - Instructing launcher to start Opera...
12:33:22.772 DEBUG - Opera launched through launcher
12:33:22.772 DEBUG - Opera launched through launcher
12:33:52.773 DEBUG - Shutting down STP connection listener
12:33:52.773 DEBUG - Shutting down STP connection listener
12:33:52.773 DEBUG - OperaDriver shutting down
12:33:52.773 DEBUG - OperaDriver shutting down
12:33:52.773 DEBUG - Shutting down launcher
12:33:52.773 DEBUG - Shutting down launcher
12:33:52.775 WARN - Exception thrown
java.util.concurrent.ExecutionException: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-40-generic', java.version: '1.6.0_26'
Driver info: driver.version: unknown
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)
at java.util.concurrent.FutureTask.get(FutureTask.java:83)
at org.openqa.selenium.remote.server.DefaultSession.execute(DefaultSession.java:139)
at org.openqa.selenium.remote.server.DefaultSession.(DefaultSession.java:108)
at org.openqa.selenium.remote.server.DefaultSession.createSession(DefaultSession.java:86)
at org.openqa.selenium.remote.server.DefaultDriverSessions.newSession(DefaultDriverSessions.java:87)
at org.openqa.selenium.remote.server.handler.NewSession.handle(NewSession.java:62)
at org.openqa.selenium.remote.server.rest.ResultConfig.handle(ResultConfig.java:196)
at org.openqa.selenium.remote.server.DriverServlet.handleRequest(DriverServlet.java:580)
at org.openqa.selenium.remote.server.DriverServlet.doPost(DriverServlet.java:531)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.openqa.selenium.remote.server.DriverServlet.service(DriverServlet.java:503)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.openqa.jetty.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
at org.openqa.jetty.jetty.servlet.ServletHandler.dispatch(ServletHandler.java:677)
at org.openqa.jetty.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1530)
at org.openqa.jetty.http.HttpContext.handle(HttpContext.java:1482)
at org.openqa.jetty.http.HttpServer.service(HttpServer.java:909)
at org.openqa.jetty.http.HttpConnection.service(HttpConnection.java:820)
at org.openqa.jetty.http.HttpConnection.handleNext(HttpConnection.java:986)
at org.openqa.jetty.http.HttpConnection.handle(HttpConnection.java:837)
at org.openqa.jetty.http.SocketListener.handleConnection(SocketListener.java:243)
at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
Caused by: org.openqa.selenium.WebDriverException: java.lang.reflect.InvocationTargetException
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-40-generic', java.version: '1.6.0_26'
Driver info: driver.version: unknown
at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:73)
at org.openqa.selenium.remote.server.DefaultDriverFactory.newInstance(DefaultDriverFactory.java:57)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:177)
at org.openqa.selenium.remote.server.DefaultSession$BrowserCreator.call(DefaultSession.java:1)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:63)
... 8 more
Caused by: org.openqa.selenium.WebDriverException: com.opera.core.systems.scope.exceptions.ResponseNotReceivedException: No response in a timely fashion
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-40-generic', java.version: '1.6.0_26'
Driver info: driver.version: OperaDriver
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-40-generic', java.version: '1.6.0_26'
Driver info: driver.version: OperaDriver
at com.opera.core.systems.OperaDriver.start(OperaDriver.java:379)
at com.opera.core.systems.OperaDriver.(OperaDriver.java:330)
... 13 more
Caused by: com.opera.core.systems.scope.exceptions.ResponseNotReceivedException: No response in a timely fashion
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-40-generic', java.version: '1.6.0_26'
Driver info: driver.version: OperaDriver
at com.opera.core.systems.WaitState.pollResultItem(WaitState.java:435)
at com.opera.core.systems.WaitState.waitAndParseResult(WaitState.java:464)
at com.opera.core.systems.WaitState.waitForHandshake(WaitState.java:665)
at com.opera.core.systems.ScopeServices.waitForHandshake(ScopeServices.java:323)
at com.opera.core.systems.ScopeServices.init(ScopeServices.java:210)
at com.opera.core.systems.OperaDriver.init(OperaDriver.java:398)
at com.opera.core.systems.OperaDriver.start(OperaDriver.java:375)
... 14 more
12:33:52.777 WARN - Exception: No response in a timely fashion
Build info: version: '2.20.0', revision: '16008', time: '2012-02-27 19:03:04'
System info: os.name: 'Linux', os.arch: 'i386', os.version: '2.6.32-40-generic', java.version: '1.6.0_26'
Driver info: driver.version: OperaDriver

Thanks
Reply all
Reply to author
Forward
0 new messages