Skip to content

accessibility id not found for the html elements rendered via react-native-webview in Appium Inspector #3547

@jakhil232

Description

@jakhil232

Issue - In my react native app, while trying to inspect html content rendered through react-native-webview, via Appium Inspector, I am unable to find accessibility id's for the content displayed. Though, the same html when rendered in iOS, the accessibility id's are present there. In android, I am able to get the xpath & other details, but accessibility id's are not found. Do we need to add separate props or any other setting that needs to be done in order to access the testId's?

I am using Webview component as follows -

<WebView
source={{
html,
}}
style={[webViewMarginStyle(), style.webViewOpacity]}
webviewDebuggingEnabled={true}
/>

Any extra prop required or any javascript code that needs to be injected? This is a blocker for QA team, as they are unable to proceed with automation due to absence of testIds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions