Skip to content
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

[XCTest][Automation] Element with locator was not found from webdriver even it is exists (only on real device iOS 16.1/16.2beta) #423

Closed
StsiapanPal opened this issue Dec 8, 2022 · 2 comments

Comments

@StsiapanPal
Copy link

There is a different behaviour on same screen on simulator ios 16.1 iphone 12 and real device (SauceLabs) ios 16.1/16.2beta iPhone 12.

  1. On simulator I am able to get element by AppiumBy.iOSClassChain - **/XCUIElementTypeCell[name == 'address']/XCUIElementTypeTextView[name = 'detail_1'], and test passes. Here is screenshot from appium inspector:

Screenshot 2022-12-07 at 16 49 15

  1. On real device ios 16.1/16.2beta only (iOS 15.6 issue is not reproducible) test is failing on same screen with error message Element with locator: AppiumBy.iOSClassChain: **/XCUIElementTypeCell[name == 'address']/XCUIElementTypeTextView[name = 'detail_1'] was not found from webdriver / root element after 20 seconds. Here is screenshot from appium inspector:

Screenshot 2022-12-07 at 17 23 03

Expected Behavior
On real device element should be found by AppiumBy.iOSClassChain: **/XCUIElementTypeCell[name == 'address']/XCUIElementTypeTextView[name = 'detail_1'] and test should pass

Minimal Reproducible Example
driver.findElement(AppiumBy.iOSClassChain("**/XCUIElementTypeCell[name == 'address']/XCUIElementTypeTextView[name = 'detail_1']"));

Environment
Operating system: mac
If running via appium CLI...
Appium CLI version (output of appium --version): 2.0.0-beta.44
Node.js version (output of node --version): v17.4.0
npm version (output of npm --version): 8.3.1
Real device or emulator/simulator: real device iOS 16.1

Link to Appium Logs
https://gist.github.com/StsiapanPal/ab82d6de6510cb29614f9d48d0f0f583

@StsiapanPal
Copy link
Author

@weissi Could you please take a look? Or point me to right place where I can post this issue?

@grynspan
Copy link
Contributor

Sorry for the late reply.

This appears to be an issue with XCUIAutomation, which is a part of the XCTest framework that ships with Xcode. swift-corelibs-xctest (this repository) does not support XCUIAutomation APIs. Please file a bug report using Apple's Feedback Assistant. Thanks!

@grynspan grynspan closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants