Page 1 of 1

XPath

Posted: Thu Oct 25, 2012 6:08 pm
by yinghu
Hi there,

I have a question about xpath.
I am recording buttons in a list table. I got the button's xpath like:
/dom[@domain='c2.auto.schoolwires.net']//a[#'btnEdit']/span[@innertext='Edit']
But I want to get xpath like:
/dom[@domain='c2.auto.schoolwires.net' and @caption~'^Automation\ Top\ Site\ Site\ ']/body/div[@id='dialog-overlay-WindowXLargeModal-base']/div/div[@id='dialog-overlay-WindowXLargeModal-body']/div/div[2]/div[@id='appmanager-pnl-moduleinstancedetail']/div/div[2]/div[1]/a[@title='Edit my app.']/span[@innertext='Edit'].

I am a newbie about Ranorex. So I don't know how to get it when I recording. Like absolute xpath. Is there any settings I need to do?

Thanks.

yinghu

Re: XPath

Posted: Fri Oct 26, 2012 5:01 pm
by Ciege
Hi yinghu,

First, one post in the forums for the same question should suffice... You shouldn't post the same question 3 times...

Second, that is called the "unique ID" feature... This post from the forum should help: http://www.ranorex.com/forum/object-xpa ... t3491.html

Re: XPath

Posted: Fri Oct 26, 2012 10:41 pm
by yinghu
Thanks for your help!

Ciege wrote:Hi yinghu,

First, one post in the forums for the same question should suffice... You shouldn't post the same question 3 times...

Second, that is called the "unique ID" feature... This post from the forum should help: http://www.ranorex.com/forum/object-xpa ... t3491.html