Find a webdocument by width and height
Posted: Thu Jul 30, 2009 8:23 am
Ranorex:2.1,win7
On my desktop ,there a 5 webdocuments ,within which only one's size, width>0,height>0
I'm trying to locate a webdocument when i use below Rxpath
@"/dom[@pageurl~' file://c:\\users\\"+username+@"\\AppData\\Local\\Temp\\.*\.html ' and @width='739' and @height='244' ] "
If i use it without @width & @height , it can find a webdocument , not which i need.
if i use it with width and height , it can not locate the webdocument. Is there sth wrong with my rxpath???
Width and height originates from what RanoreSpy captured.
i also used @width~'7.*' and @height~'2.*', it can not work
On my desktop ,there a 5 webdocuments ,within which only one's size, width>0,height>0
I'm trying to locate a webdocument when i use below Rxpath
@"/dom[@pageurl~' file://c:\\users\\"+username+@"\\AppData\\Local\\Temp\\.*\.html ' and @width='739' and @height='244' ] "
If i use it without @width & @height , it can find a webdocument , not which i need.
if i use it with width and height , it can not locate the webdocument. Is there sth wrong with my rxpath???
Width and height originates from what RanoreSpy captured.
i also used @width~'7.*' and @height~'2.*', it can not work