Page 1 of 1

Search by automation ID

Posted: Wed Jun 21, 2017 8:20 am
by Sunguresat
Hi,

I have this problem - cannot find elements. I know they exist because developer added them somewhere, but I cannot find it. Spy doesn't help either. So it made me thinking, maybe there is some feature in ranorex called "search"? You enter automation ID and it searches for it through element browser(your application)?

Thanks!

Re: Search by automation ID

Posted: Wed Jun 21, 2017 2:23 pm
by Vaughan.Douglas
That is the Ranorex Spy. Try pulling up the spy and doing something like

//*[@automationid='YouIdHere']
search.png
  • the // should force Ranorex to search EVERYTHING under host, so it could take a while
  • the * is a wildcard for adapter type
  • I've assumed the Automation ID attribute is automationid
If you want more specific suggestions, I recommend uploading a snapshot of your AUT.