How to change settings for new url?

Ask general questions here.
RanoPower
Posts: 1
Joined: Thu Sep 22, 2016 10:17 am

How to change settings for new url?

Post by RanoPower » Fri Sep 23, 2016 6:25 am

Our web test site has been moved after trouble. This result in new url og site address.
I can cange property - but all the different click has url adresses with wrong url. How to fix ?

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

Re: How to change settings for new url?

Post by krstcs » Fri Sep 23, 2016 1:39 pm

You are going to have to edit each RXPath that has the url hard-coded.

I would suggest that you not use the FULL url in your RXPaths, but instead use the regex equality symbol ('~') instead of equals ('=').

So, instead of:
\\atag[@href='http://www.mydomain.com/myapp/mypage.html']

You want:
\\atag[@href~'/myapp/mypage\.html']

Notice the escape character ('\') before the period ('.'), this is regex.


This will cut down on problems like this one.

Then, just change your main /dom object's domain and everything under it should work correctly.

dom[@domain='www.myNEWdomain.com' and state='complete']
Shortcuts usually aren't...