Showing differernt xpaths in Different Browsers.

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
kumarchowg
Posts: 19
Joined: Mon Jan 23, 2012 7:53 am

Showing differernt xpaths in Different Browsers.

Post by kumarchowg » Mon May 07, 2012 11:26 am

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11710
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Showing differernt xpaths in Different Browsers.

Post by Support Team » Tue May 08, 2012 12:42 pm

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
.
Image