XPath
Posted: Thu Oct 25, 2012 6:08 pm
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
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