appium: Can not see elements inside WebView Element with XCUITest on simulator(with UIAutomator2 it works)
Do I have the most recent component updates?
- I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
- I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When using ignoreUnimportantViews(false) in conjunction with enableMultiWindows(true), in my native iOS app, when I am redirected to a screen that represents a webview (app is native so no webview context available), the only element I see in the page source is an element of type XCUIElementTypeWebView, but can not see the elements inside it, when using simulator On Android I am able to see all content and elements in the webview element, when using emulator.
Expected Behavior
Expected behavior was to be able to see all elements in the webview on iOS. like I am able on Android
Minimal Reproducible Example
The repository is private
Environment
- Appium server version (output of
appium --version
): 2.5.1 - Appium driver(s) and their version(s): uiautomator2@3.0.2 (automationName ‘UiAutomator2’), xcuitest@7.3.1 (automationName ‘XCUITest’)
- Appium plugin(s) and their version(s): no plugins
- Node.js version (output of
node --version
): v21.7.1 npm
version (output ofnpm --version
): 10.5.0- Last component(s) version which did not exhibit the problem:
- Platform and version under test: iOS 17.2
- Real device or emulator/simulator: simulator (on real device on Saucelabs it works fine)
Link to Appium Logs
No response
Further Information
[ iOS.json android.json android.txt iOS.txt ](url)
About this issue
- Original URL
- State: open
- Created 3 months ago
- Comments: 18 (6 by maintainers)
Already asked what capabilities they are using, but not reply yet. They also they gave me a link to this page: : https://medium.com/@atifqamar29/debugging-ios-webviews-on-safari-browser-822def097497. But I already configured my own iphone with those setting from the page, and still no luck