New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to selenium 4 and python-client v2 #363
Conversation
i have upgraded but now i got "AttributeError: 'WebDriver' object has no attribute 'find_elements_by_ios_class_chain'" |
@atenwolde checking it, thank you, it seems selenium 4 also changed the locators |
@atenwolde please test again, if you can with iOS. in b4 package I just uploaded |
I have tested it with th b4 package and it works. Thanks for you quick respons |
In AppiumLibrary/keywords/_applicationmanagement.py |
in |
@js361014 Thank you for your testing, updated all the rest of the find_element_by type methods. please re-test |
I will release the v2.0 if there is not further testing / issues found until tomorrow |
Hi. Can you check whether it works with Selenium Grid? I have troubles running it. Seems Selenium Hub is never reached by the new AppiumLibrary (tried versions: 2.0.0b5, 1.6.4). 1.6.3 is working just fine. Selenium Hub version: 4.5.3 RF demo test:
Error in:
Error seen:
|
@robco thank you for your results, I have done a test with saucelabs , it seems to be working fine, check my desiredCapabilities below
url is something like |
Since also tested with appium version |
@robco
here is the test
```
*** Settings ***
Resource ../resources/resource.robot
Test Setup Open iOS Sauce Test App
Test Teardown Close Application
*** Keywords ***
Open iOS Sauce Test App
&{SAUCE_OPTIONS} create dictionary appiumVersion=2.0.0-beta44
open application ${IOS_SAUCE_URL} platformName=${IOS_PLATFORM_NAME_SAUCE}
... appium:app=${IOS_APP_SAUCE} appium:deviceName=${IOS_DEVICE_NAME_SAUCE}
... appium:platformVersion=${IOS_PLATFORM_VERSION_SAUCE}
appium:automationName=${IOS_AUTOMATION_NAME_SAUCE}
... deviceName=${IOS_DEVICE_NAME_SAUCE} sauce:options=&{SAUCE_OPTIONS}
*** Test Cases ***
Should find elements by ID
${element} get webelement ComputeSumButton
element should be visible ${element}
```
…On Tue, 1 Nov 2022 at 15:47, Róbert Malovec ***@***.***> wrote:
@serhatbolsu <https://github.com/serhatbolsu>, can you provide your RF
test? All I am changing is just the AppiumLibrary version through PiP and I
see 100% reproducible issue with "tests not getting pushed to grid". Tried
macOS, ubuntu (native and in docker)..
—
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4M36SKV25LYKXXN3BPIRDWGD7L3ANCNFSM6AAAAAAROFEBHU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you. Tried that, too. Only difference in mine is I do not use SauceLabs but local Selenium Grid setup, v4.5.3 (the latest version). When I change AppiumLibrary version from 1.6.3 to something above it just never seems to ping hub and execution times out as in my previous comment.. The only physical change between AppiumLibrary 1.6.3 and AppiumLibrary 2.0.0 in my system are the versions of the dependences resolved automatically by PiP: AppiumLibrary 1.6.3: Appium-Python-Client-1.3.0 robotframework-appiumlibrary-1.6.3 selenium-3.141.0 |
Likely its about the appium version then
…On Tue, 1 Nov 2022 at 16:14, Róbert Malovec ***@***.***> wrote:
Thank you. Tried that, too.
Only difference in mine is I do not use SauceLabs but local Selenium Grid
setup, v4.5.3 (the latest version).
When I change AppiumLibrary version from 1.6.3 to something above it just
never seems to ping hub and execution times out as in my previous comment..
The only physical change between AppiumLibrary 1.6.3 and AppiumLibrary
2.0.0 in my system are the versions of the dependences resolved
automatically by PiP:
AppiumLibrary 1.6.3: Appium-Python-Client-1.3.0
robotframework-appiumlibrary-1.6.3 selenium-3.141.0
AppiumLibrary 2.0.0: Appium-Python-Client-2.7.1
robotframework-appiumlibrary-2.0.0 selenium-4.5.0
—
Reply to this email directly, view it on GitHub
<#363 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB4M36RSIPDZJTXXSRKRX4LWGECSXANCNFSM6AAAAAAROFEBHU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@serhatbolsu, does not seem so. Just tried with appium 2.0.0-beta.46 and getting the same behavior.. |
@robco please create a new issue with your case and environment again, I will investigate |
@serhatbolsu, I've just created #367 for this. Thank you. |
Implements
Selenium Version 4 support and relative fixes for python-client
ToDO
Execute Script
Tap With Positions
find_elements
for when ask is single element❗️ Please test the beta build here ❗️
pip install robotframework-appiumlibrary==2.0.0b5