Combining appium and selenium

232 views
Skip to first unread message

Gerhard Heil

unread,
Apr 26, 2022, 10:28:50 AM4/26/22
to robotframework-users
Hi all,
we have an app (Android and iOS) that opens a url as browser page, on the smartphone of course. Is it possible to test that combination of app and browser via RF? My idea is first operating the app via appium-library, herein click the button which opens the browser page, then selecting the browser via keyword Switch Context, and then operate the browser via selenium-library. Would RF find the browser on the smartphone in that way?

If so, how can I install the matching versions of the required libraries? I assume I need rebotframework-seleniumlibrary and robotframework-appiumlibrary. When I call pip install rebotframework-seleniumlibrary, that implicitely also installs selenium 4.1.3. And when I call pip install robotframework-appiumlibrary, that implilitely also installs Appium-Python-Client 1.3.0. And that causes a version conflict, as Appium-Python-Client 1.3.0 requires selenium < 4, but robotframework-seleniumlibrary requires selenium > 4. 

Even if I install Appium-Python-Client manually, selecting version 2.2.0, this is replaced by Appium-Python-Client 1.3.0 within installing robotframework-appiumlibrary.

Geri

unread,
Apr 27, 2022, 11:04:35 AM4/27/22
to robotframework-users

this is known issue for robot framework appium library. see this discussion

Gerhard Heil

unread,
Apr 29, 2022, 6:45:58 AM4/29/22
to robotframework-users
Ok, fine to see that the issue is already solved in the code. When will that version be released?

And once the version conflict is solved, can I then implement my test as described? The discussion in issue 337 sounds as if they want to operate an app on a smartphone and a browser on a desktop PC alternately. But I want to test an app, click a button in the app which causes a browser to be started on the smartphone, then enter some data in that browser page, and then return to the app, where the entered data must be visible in the app. Will the keyword Switch Context be able to select the browser on the smartphone? And can I operate the browser on the smartphone with keywords of the robotframework-seleniumlibrary?
Reply all
Reply to author
Forward
0 new messages