robotframework-appiumlibrary icon indicating copy to clipboard operation
robotframework-appiumlibrary copied to clipboard

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

Open zaid0080 opened this issue 3 years ago • 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

zaid0080 avatar Nov 26 '22 16:11 zaid0080

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

serhatbolsu avatar Nov 27 '22 20:11 serhatbolsu

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 avatar Nov 30 '22 15:11 zaid0080

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

serhat-onedio avatar Nov 30 '22 17:11 serhat-onedio

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

zaid0080 avatar Nov 30 '22 17:11 zaid0080

Due to lack of activity I am closing this ticket. If you feel this is still relevant please open a new one.

Note also that AppiumLibrary is currently going through some revisions to make it useful and compatible with current tools. If you want to see what we have planned review the milestones or reach out to the current maintainers.

emanlove avatar Sep 01 '25 14:09 emanlove