I first recorded a script testing a web application running on one of our servers. I then tried to change the path of the application folders in the script in order to make the script insensitive to the name of the web server. I want to be able to run the test on another server without changing the script.
Changing the first application folder path (the web browser main window) succeeded, but changing the next, a new window opened by a javascript, did not.
The application folder had the path
/form[@title~'^http://frontwalkervpn/\ --']
and I tried to change it to
/form[@title~'^http://.*/\ --\ Webbsidedialogruta']
When I pressed Enter Ranorex Studio hanged, giving me this:
System.ArgumentException: Supplied prefix '/form[@title~'^http://.*/\ --\ Webbsidedialogruta']' is not a prefix of the path '/form[@title~'^http://frontwalkervpn/\ --']/element/container/*/cell[2]/*'. ---> Ranorex.RxPathException: Supplied prefix '/form[@title~'^http://.*/\ --\ Webbsidedialogruta']' is not a prefix of the path '/form[@title~'^http://frontwalkervpn/\ --']/element/container/*/cell[2]/*'.
vid Ranorex.Core.RxPath.RemovePrefix(RxPath path, RxPath prefix)
vid Ranorex.Core.Repository.RepositoryFolder.get_RelativeBasePath()
vid Ranorex.Controls.RepositoryEditor.RepoTreeNode.get_PathText()
I tried making other kinds of changes to the path but any change produced the same error.
Impossible to edit application folder path in script
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Could please download the brand-new Ranorex 2.0 Release and try that issue again? We have fixed many bugs in the Repository Editor.
Regards,
Alex
Ranorex Support Team
Regards,
Alex
Ranorex Support Team