Using selenium and appium together

816 views
Skip to first unread message

kiwi_tester

unread,
Jan 25, 2022, 6:00:05 PM1/25/22
to robotframework-users
Hi,

I would like to use the Appium and Selenium libraries of Robot Framework together for  end to end test of the system under test.

To start with, I installed the AppiumLibrary first and then when I tried the selenium installation, I got the below error:
----------
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behavior is the source of the following dependency conflicts.
robotframework-appiumlibrary 1.6.3 requires selenium<4,>=2.47.1, but you have selenium 4.1.0 which is incompatible.
appium-python-client 1.3.0 requires selenium<4,>=3.14.1, but you have selenium 4.1.0 which is incompatible.
-----------
Due to this when using the AppiumLibrary.Open Application keyword, the test fails with the message: AttributeError: can't set attribute 'capabilities'
Above issue can be solved by uninstalling selenium and reinstalling the AppiumLibrary.

Please can someone guide me as to how I can use both Appium and Selenium libraries together with Robot Framework.

Thank you,
Sumesh

Hernandi Krammes

unread,
Jan 29, 2022, 6:43:29 PM1/29/22
to robotframework-users
Hi! Have you initialized the selenium library accordingly with the documentation?
Have a example of the initialization that you have done?

kiwi_tester

unread,
Feb 1, 2022, 11:06:44 PM2/1/22
to robotframework-users
Hi, Thanks for your reply.

Yes, I installed both libraries as per their docs. 

 I got both working by reinstalling AppiumLibrary. This downgraded the Selenium to version 3.141.0.

But not sure what I will be missing from the Selenium ver 4.1.0

Thanks,
Sumesh

Reply all
Reply to author
Forward
0 new messages