Problem when accessing different Webpages

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Posts: 1
Joined: Fri Oct 18, 2013 3:23 pm

Problem when accessing different Webpages

Post by chsibi » Fri Oct 18, 2013 3:35 pm

I try to do some automatic generation of actions on serveral websites.
But it seems to be so, that the elements of the browser are different on each website, such that the same button can't be found when one time I surf to e.g. heise. de and the other time to heise. de/thema/iPhone.

To be more concrete:
I recorded the following 2 actions:
-open browser (I tried FF and IE9)
-click on x at upper right to close browser

I then edited the url of the "Open Browser"-Action to a variable and bound them to an xls file containing several domainnames (in my case:
heise. de/
heise. de/newsticker/meldung/MacBook-Air-Apple-warnt-vor-SSD-Datenverlust-1981419.html
heise. de/thema/Windows-8
heise. de/thema/iPhone
heise. de/thema/Google-Nexus
(url edited because of lmitations of new account)
If I try to run the testcase with these 5 iterations now, Ranorex Studio ( just waits endless after the browser is started and the x to close the window should be clicked.

Help appreciated very much and thank you in advance

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Problem when accessing different Webpages

Post by Support Team » Tue Oct 22, 2013 5:05 pm

Hi Chris,

I would suggest watching the screencasts about the RxPath, they will be beneficial for you.
Here is the link: Screencasts.


Posts: 87
Joined: Sun Aug 05, 2012 11:59 am
Location: Bilbao, Spain

Re: Problem when accessing different Webpages

Post by mdgairaud » Thu Oct 31, 2013 9:38 am


I use Rx to run test over Firefox and InternetExplorer and the RxPath of the browser controls are different between browser, it also happens with combobox and many other controls.

You must record a close action for each browser and use the correct one with it's browser.

I use something like this:

Code: Select all

if(browser == "IE")


Posts: 92
Joined: Thu Oct 10, 2013 10:40 am

Re: Problem when accessing different Webpages

Post by Swisside » Thu Oct 31, 2013 1:19 pm

I tried it out it seems to be working fine for me

(I only tried for two addresses because I'm lazy)


You do not have the required permissions to view the files attached to this post.
A simple thank you always does wonders !

Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Problem when accessing different Webpages

Post by krstcs » Thu Oct 31, 2013 1:28 pm

If your test case is not focused on using the "X" button (which in this case it probably isn't since you probably aren't testing IE or Firefox directly), then you should not use a "CLICK THE X button" type action to close your SUT. You should use the "Close Application" action on your SUT's /dom adapter. This will ensure that it is closed correctly, no matter what browser you are using.
Shortcuts usually aren't...