hi
I recorded a test case on Win7x64 with IE9.
will this test case run properly on IE8? win XP?
run the same rcording on different web-browsers
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: run the same rcording on different web-browsers
Hello,
If your website has the same structure in IE8 and in IE9 this should work. In some cases it could be that the RanroeXPath to the elements are not exactly equal in different versions of IE. In that case you have to adapt the path for these elements that the specific element can be found in both versions of Internet Explorer.
I would recommend to try if the test runs on both versions.
Regards,
Bernhard
If your website has the same structure in IE8 and in IE9 this should work. In some cases it could be that the RanroeXPath to the elements are not exactly equal in different versions of IE. In that case you have to adapt the path for these elements that the specific element can be found in both versions of Internet Explorer.
I would recommend to try if the test runs on both versions.
Regards,
Bernhard
Re: run the same rcording on different web-browsers
I use variable to determine what version of browser I use to run the test. But instead of change between IE9 & IE8 I change between IE9 & FF13 (they shared a lot of XPath
).
Most of XPaths would be useful, but for the XPaths that differs use the variable to use one or other
pseudo-code of what i'm doing:
regards,
Mateo.

Most of XPaths would be useful, but for the XPaths that differs use the variable to use one or other
pseudo-code of what i'm doing:
Code: Select all
if browser = IE9 & OS = Windows7
use this control
else
//IE8 & WindowsXP
use this control
regards,
Mateo.
Last edited by mdgairaud on Thu May 23, 2013 11:19 am, edited 1 time in total.
Re: run the same rcording on different web-browsers
I use the same code on both IE8/9.
I tried to run the same scenario (recorded on IE9) but the recorder cannot recognize some of the elements.
I did the same on IE10 and it worked good.
what is the best way to adapt IE9 recording into IE8? is it possible to do this automaticly, or i have to record everything again?
I tried to run the same scenario (recorded on IE9) but the recorder cannot recognize some of the elements.
I did the same on IE10 and it worked good.
what is the best way to adapt IE9 recording into IE8? is it possible to do this automaticly, or i have to record everything again?

Last edited by ecohen on Sun May 26, 2013 9:19 am, edited 1 time in total.
Re: run the same rcording on different web-browsers
Hi,
No, all the test no... only record (or recognize again with spy) the elements that are not compatible between IE9 and IE8. Then in repository add the prefix IE8 or IE9 to avoid confussion.
To know what controls are compatible or not, run the test step-by-step and you can see what controls are good or not.
Then put a condition to let the code switch between controls depending the browser used.
regards,
Mateo.
No, all the test no... only record (or recognize again with spy) the elements that are not compatible between IE9 and IE8. Then in repository add the prefix IE8 or IE9 to avoid confussion.
To know what controls are compatible or not, run the test step-by-step and you can see what controls are good or not.
Then put a condition to let the code switch between controls depending the browser used.
regards,
Mateo.
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: run the same rcording on different web-browsers
Hi ecohen,
Do you know our blog about cross browser testing? There it is also described how you could handle such scenarios with Ranorex.
You could also use the Spy tool in order to analyze the differences of the RxPaths, but in general there shouldn't be great differences between the browsers and the versions of the browsers.
You could for instance create a Ranorex snapshot file of your webpage and compare it with the elements shown in the Spy of your webpage opened in the other browser.
Regards,
Markus
Do you know our blog about cross browser testing? There it is also described how you could handle such scenarios with Ranorex.
You could also use the Spy tool in order to analyze the differences of the RxPaths, but in general there shouldn't be great differences between the browsers and the versions of the browsers.
You could for instance create a Ranorex snapshot file of your webpage and compare it with the elements shown in the Spy of your webpage opened in the other browser.
Regards,
Markus