Just a quick warning...I'm really new to Ranorex so this may be trivial.
The GUI I'm attempting to test was built using Qooxdoo controls that are auto-generated based on server content. Unfortunately, when the framework was designed, unique IDs for input fields (i.e. labels) weren't used. See the attached screenshot of the paths generated by Ranorex.
To make things harder, it appears the paths from one build of the GUI SW to the next can change. For example, I'm having a hard time finding McpAdmin (highlighted in screenshot) between the OldGUI and the NewGUI because the path on the base is slightly different.
Is there a way when setting up the Ranorex script that I can make it more dynamic? I'd like to avoid tweaking my Ranorex scripts after every build.
Also, I attempted to capture my Ranorex code per the README at the top of this forum. However, I couldn't figure that out either.
Qooxdoo paths
Qooxdoo paths
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Qooxdoo paths
Hi tdibble,
First of all, very welcome to our online forum .
Regarding your question, this is not a trivial question since it is about our RxPath build settings.
In order to better analyze the issue regarding the RxPaths, may I ask you to post or send (to [email protected]) a Ranorex snapshot file of the specific "McpAdmin" element from the old and the new GUI, or could we somehow get access to your webpage, which would be even better ?
The following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.
Thanks,
Markus
First of all, very welcome to our online forum .
Regarding your question, this is not a trivial question since it is about our RxPath build settings.
In order to better analyze the issue regarding the RxPaths, may I ask you to post or send (to [email protected]) a Ranorex snapshot file of the specific "McpAdmin" element from the old and the new GUI, or could we somehow get access to your webpage, which would be even better ?
The following link will show you how to generate a snapshot file: Creating Ranorex Snapshot Files.
Thanks,
Markus
Re: Qooxdoo paths
Markus,
Thanks for the prompt response! I have attached snapshot files of both GUIs. Unfortunately, I cannot make these GUIs public.
Cheers,
Ted
Thanks for the prompt response! I have attached snapshot files of both GUIs. Unfortunately, I cannot make these GUIs public.
Cheers,
Ted
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Qooxdoo paths
Hi tdibble,
I am afraid you created the snapshots from the wrong elements.
Could you please create the snapshot from the root dom element of your old and new GUI web site as shown below? Please also send me the RxPaths of the specific McpAdmin element of both versions.
Thanks,
Markus
I am afraid you created the snapshots from the wrong elements.
Could you please create the snapshot from the root dom element of your old and new GUI web site as shown below? Please also send me the RxPaths of the specific McpAdmin element of both versions.
Thanks,
Markus
You do not have the required permissions to view the files attached to this post.
Re: Qooxdoo paths
I attached the new snapshots.
Old GUI Path:
/dom[@domain='10.243.20.113:30000']/body/div[3]/div[1]/div[3]/div[3]/div[1]/div/div/div[2]/div[1]/div[@innertext='Mcp Admin']
New GUI Path:
/dom[@domain='10.243.20.113:30000']/body/div[2]/div[1]/div[3]/div[3]/div[1]/div/div/div[2]/div[1]/div[@innertext='Mcp Admin']
When or after the paths are generated, can I configure Ranorex to look for the innertex='Mcp Admin' and ingore all of the path info?
Old GUI Path:
/dom[@domain='10.243.20.113:30000']/body/div[3]/div[1]/div[3]/div[3]/div[1]/div/div/div[2]/div[1]/div[@innertext='Mcp Admin']
New GUI Path:
/dom[@domain='10.243.20.113:30000']/body/div[2]/div[1]/div[3]/div[3]/div[1]/div/div/div[2]/div[1]/div[@innertext='Mcp Admin']
When or after the paths are generated, can I configure Ranorex to look for the innertex='Mcp Admin' and ingore all of the path info?
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Qooxdoo paths
Hi tdibble,
Thanks for the snapshots, this time they are the right ones .
As I can see from the snapshots just the first part of the RxPath changed, so the following RxPath should work for you: "/dom[@domain='10.243.20.113:30000']/body/div[@visible='true']/div[@visible='true']/div[@class='qx-splitpane']/div[@class='qx-input']/div/div/div/div/div/div[@innertext='Mcp Admin']".
As just the first part changed you could also use the indexes after the "div[@class='qx-input']" element: "/dom[@domain='10.243.20.113:30000']/body/div[@visible='true']/div[@visible='true']/div[@class='qx-splitpane']/div[@class='qx-input']/div[1]/div/div/div[2]/div[1]/div[@innertext='Mcp Admin']".
What do you mean with "ignore all of the path info"? Do you mean the div elements, or a specific attribute?
Regards,
Markus
Thanks for the snapshots, this time they are the right ones .
As I can see from the snapshots just the first part of the RxPath changed, so the following RxPath should work for you: "/dom[@domain='10.243.20.113:30000']/body/div[@visible='true']/div[@visible='true']/div[@class='qx-splitpane']/div[@class='qx-input']/div/div/div/div/div/div[@innertext='Mcp Admin']".
As just the first part changed you could also use the indexes after the "div[@class='qx-input']" element: "/dom[@domain='10.243.20.113:30000']/body/div[@visible='true']/div[@visible='true']/div[@class='qx-splitpane']/div[@class='qx-input']/div[1]/div/div/div[2]/div[1]/div[@innertext='Mcp Admin']".
What do you mean with "ignore all of the path info"? Do you mean the div elements, or a specific attribute?
Regards,
Markus