daver
November 21, 2017, 8:50am
1
hello,
Can anyone assist me in understanding where I have gone wrong in trying to automate tests against opera mini browser using the opera chromium driver found here:
# Appium
Using [Appium](http://appium.io/) makes the test app able to switch between the native and web contexts.
The *native context* is the context of the user interface. In this context the test app is able to dismiss some native Opera dialogs such as the “Remember password” dialog.
The *web context* is intended to be used for web page testing.
For now, to start tests for Opera with Appium several capabilities are needed. This will change soon and you be able to use only `'opera'` `browserName` like for other supported browsers.
Typical setup:
```python
desired_caps['chromedriverExecutable'] = '/absolute/path/to/operadriver' #download from https://github.com/operasoftware/operachromiumdriver/releases
desired_caps['app'] = os.path.abspath('opera-browser.apk') #path to Opera apk - download from http://www.opera.com/mobile/operabrowser/android
desired_caps['appPackage'] = 'com.opera.browser'
desired_caps['androidDeviceSocket'] = desired_caps['appPackage'] + '.devtools'
```
## Complete example with context switching
This file has been truncated. show original
I am trying to use is using java. Is this still possible?