Hello,
I'm having trouble using Selenium2Library's "create webDriver" keyword. I'm not able to specify a URL when using the "remote" driver. My keyword looks like this:
*** Keywords ***
open app
${capabilities}= Create Dictionary
Set To Dictionary ${capabilities} app sauce-storage:app.zip
Set To Dictionary ${capabilities} device android
Set To Dictionary ${capabilities} version 4.2
Set To Dictionary ${capabilities} deviceType phone
Set To Dictionary ${capabilities} app-activity .activity
Log Dictionary ${capabilities}
I get this error when running my test:
FAIL : AttributeError: 'unicode' object has no attribute 'execute'
The end goal is really just to perform some native app testing with Appium on Saucelabs. Appium uses selenium's JSON Wire protocol, so I was hoping Robot Framework's Selenium2Library could consume it as well. However the "open browser" keyword doesn't seem to be able to support this kind of testing, since it can't take the "remote" browser. I can almost get away with using the android browser, but then my test fails since the browser isn't able to start.
I have to believe there is some kind of support for this and I'm just doing it wrong. I feel like I'm close. Has anybody had any success with using the Remote driver and Selenium2Library's create webdriver keyword?
Thanks so much!