Page 1 of 1

Showing differernt xpaths in Different Browsers.

Posted: Mon May 07, 2012 11:26 am
by kumarchowg
Hi,

when i am trying to automate a scenario in different browsers, i have noticed that different browsers are showing different xpaths for the same object. even few properties are not showing

In FireFox the Xpath is "/dom[@domain='www.ef.se' and @caption='EF Språkkurser Utomlands' and @page='' and @path='/ils/' and @browsername='Mozilla']/body/form/div[3]/div[3]/div[1]/div[@id='omnidiv-footer-actions']/div/ul/li[3]/a[@href='/ils/infomeetings/']"

In Chrome for same object is "/dom[@domain='www.ef.se' and @caption='EF Språkkurser Utomlands' and @page='' and @path='/ils/' and @browsername='Chrome']/body/form/div[3]/div[3]/div[1]/div[@id='omnidiv-footer-actions']/div/ul/li[3]/a[@href~'^http://www\.ef\.se/ils/info']"

even properties like "MaxLenght" is showing in Firefox, but not in Chrome.

is there a way where we can get same x path and property values so that no need of creating different script for each browser.

Thanks
Kumar

Re: Showing differernt xpaths in Different Browsers.

Posted: Tue May 08, 2012 12:42 pm
by Support Team
Hi,

Please send us two Ranorex Snapshot files of the specific object, one from each browser?
Following link will show you how to generate a snapshot file.
There is also a useful blog about cross browser testing.

Regards,
Markus
Ranorex Support Team