react-native-webview icon indicating copy to clipboard operation
react-native-webview copied to clipboard

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

Open jakhil232 opened this issue 1 year ago • 2 comments

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.

jakhil232 avatar Sep 04 '24 13:09 jakhil232

Hey community, any info over this?

jakhil232 avatar Sep 05 '24 06:09 jakhil232

Anyone know fix for this issue?

jakhil232 avatar Oct 01 '24 05:10 jakhil232

Hello, did you get a fix?

ReinoldoMethod avatar Nov 14 '24 14:11 ReinoldoMethod

Nope, did not get it. Any fixes?

jakhil232 avatar Nov 14 '24 16:11 jakhil232

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Jan 14 '25 00:01 github-actions[bot]