I am writing automation test for my ReactNative app with Appium. I'm unable to access react native components in appium. Even Appium inspector can't inspect inside react native view.
I'm trying something like this :
it("Testing Automation", function () {
return driver
.waitForElementById('LogoutButton', 5000).click()
});
Is there anyway to know react native component's Xpath or anyway to access them by any other attribute? Thanks
For the elements from react-native using chrome://inspect/#devices
on your Chrome browser could provide you help inspect the elements similar to any other Webview.
You can find there class
, css
, x-path
etc as assigned to them during development.