object search

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

object search

Post by omayer » Fri Aug 31, 2012 8:24 pm

How will i search Atag w/out using webdoc in rxpath "/dom[@domain='wwab.bc.com']
the reason behind when I click on img or any link sometimes the page open in a new window where is the Atag resides, so can't find the object , only it found when page doesn't open in a new window after click on link , i am using IE7.
Thank You
Tipu

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: object search

Post by Ciege » Fri Aug 31, 2012 9:59 pm

You can try to root from the window...

Or you can try to root from the desktop

Code: Select all

Ranorex.Element MyElement = Host.Local.FindSingle(strXPath, 30000);
I would opt to root from the window since it will take less time to find the element from there than searching the entire desktop...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...