operasoftware / operaprestodriver

OperaPrestoDriver is a vendor-supported WebDriver implementation that enables programmatic automation of Presto-based Opera products (i.e. v12 and older).
http://code.google.com/p/selenium/wiki/OperaDriver
Apache License 2.0
149 stars 65 forks source link

Using OperaDriver with Opera Mobile #73

Closed papousek closed 12 years ago

papousek commented 12 years ago

Hi,

I am trying to configure OperaDriver with Opera Mobile. When I follow the tutorial on http://code.google.com/p/selenium/wiki/OperaDriver the tests fail on:

FINE: opera: Unknown/incorrect option "-autotestmode".

I've noticed there is a workaround for this issue and created bash file and set it as a "opera.binary" capabality:

#!/bin/sh
/blah/blah/operamobile

The browser starts successfully using this script, but opening the page in that browser fails on:

com.opera.core.systems.scope.exceptions.ResponseNotReceivedException: No response in a timely fashion

I am using Opera Mobile 12 and OperaDriver 0.11. My code is:

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("opera.port", "-1");
capabilities.setCapability("opera.profile", "");
capabilities.setCapability("opera.binary", "/tmp/operawrapper.sh");
OperaDriver driver = new OperaDriver(capabilities);
driver.navigate().to("http://www.opera.com/");
andreastt commented 12 years ago

Opera Mobile is not yet supported by OperaDriver HEAD. I have a proof of concept working, and I hope that it will make it into OperaDriver within a month or so.

papousek commented 12 years ago

OK, it's great!

papousek commented 12 years ago

Is here any progress?

andreastt commented 12 years ago

Added support for Opera Mobile Emulator to OperaDriver 0.16 and later, please see this:

http://dev.opera.com/articles/view/introducing-mobile-browser-automation/