serhatbolsu/robotframework-appiumlibrary

Can't find the element using id but working fine with xpath

Opened this issue · 4 comments

I am trying to find one element using id=search_icon, it is giving me no element found, but when I am using this xpath=//*[@resource-id=‘search_icon’], it is working fine. What could be the possible issue here? This is a react native app.

image

image

hi @zaid0080 . How does it look in locator finder? please share full name there. Also is it android / ios?

Hi @serhatbolsu Sorry for the late reply. It is coming as id only in the appium inspecter attached the screenshot and this is android app build in react native.
image

@zaid0080 likely you will find the answer here , #368

@serhat-onedio Have tried all the possible ways but still not working. Anyway Thanks fo the suggestion! : )