Hi!
I tried to find Icons on the Windows Desktop using Spy, and it returned a path that began with \dektop - this worked for a while, until it suddenly did not. For a while the icons where findable only on a path that was the same, but began with \form (byline: \form and \dom had been the only rxpath roles i had known before encountering \desktop - is there a list of all posible roles?) - so i changed the root folder accordingly, and it worked again, for a while...
Just skipping the root folder makes the search take a long time (search with root-role (form or desktop, whatever works at the time): 50ms -- Search without root-role: 3,5 seconds...)
Is there a possibility of offering two alternative xpaths, or something?
RxPath for Windows Desktop Icons?
Re: RxPath for Windows Desktop Icons?
What OS are you on? Maybe it varies per Windows version, but my path looks like the below:
the parent container in the Spy tree is Form 'explorer'. I am not sure how you were able to have desktop icons showed up as a child element of DOM, as a DOM is a webpage (document object model). Perhaps if you were able to share some sample RxPaths as well as a Ranorex snapshot, we could figure out your issue.
hope this helps
Code: Select all
/form[@title='']/?/?/list[@controlid='1']/listitem[@text='Icon_Text_Sample']
hope this helps