Hi,
Some dialogs in my AUT use wxWidget, and Ranorex Spy could only recognize the top window, but could not access the cell level. Please see below image:
Is Ranorex going to support this? Or there is already a way but I didn't find?
Thanks!
Liam
Could not access cells in a wxWindow
Could not access cells in a wxWindow
You do not have the required permissions to view the files attached to this post.
Re: Could not access cells in a wxWindow
You could try the GDI plugin - http://www.ranorex.com/blog/automation- ... re-plug-in
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Could not access cells in a wxWindow
Hi,
How to create a Ranorex Snapshot:
http://www.ranorex.com/support/user-gui ... html#c2072
Or as suggested by sdaly, you can try the GDI Plug-In to get the text of this elements.
Thanks in advance.
Regards,
Peter
Ranorex Team
Please could you post us a Ranorex Snapshot of this element? With this snapshot it is much easier to analyze the problem.Liam wrote:Is Ranorex going to support this? Or there is already a way but I didn't find?
How to create a Ranorex Snapshot:
http://www.ranorex.com/support/user-gui ... html#c2072
Or as suggested by sdaly, you can try the GDI Plug-In to get the text of this elements.
Thanks in advance.
Regards,
Peter
Ranorex Team
Re: Could not access cells in a wxWindow
Thanks, sdaly, I will try the GDI Plug-In to see if it works for me.
Hi Peter,
Could you help to take a look at the snapshot?
Thank you for your help.
Regards,
Liam
Hi Peter,
Could you help to take a look at the snapshot?
Thank you for your help.
Regards,
Liam
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: Could not access cells in a wxWindow
Hi,
WxWidgets are currently not supported out of the box. I would suggest you to try the RawText Plug-In. Another solution would be to implement MSAA for this controls. Therefore please take a look to following blog
http://www.ranorex.com/blog/enabling-au ... s-controls
Regards,
Peter
Ranorex Team
WxWidgets are currently not supported out of the box. I would suggest you to try the RawText Plug-In. Another solution would be to implement MSAA for this controls. Therefore please take a look to following blog
http://www.ranorex.com/blog/enabling-au ... s-controls
Regards,
Peter
Ranorex Team
Re: Could not access cells in a wxWindow
Hi,
I take a try with the GDI Plug-In - very nice feature
But, sadly I don't think it fits my situation quite well.
As you can see from my snapshot, we have checkboxes inside the window, for which there is no text.
So it seems the only way is to implement MSAA for the control?
Thanks,
Liam
I take a try with the GDI Plug-In - very nice feature
But, sadly I don't think it fits my situation quite well.
As you can see from my snapshot, we have checkboxes inside the window, for which there is no text.
So it seems the only way is to implement MSAA for the control?
Thanks,
Liam
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Could not access cells in a wxWindow
Hi Liam,
Yes to access the check-box you have to implement MSAA, or you use Image Based recording of Ranorex.
Image Based Automation:
http://www.ranorex.com/support/user-gui ... ation.html
Regards,
Peter
Ranorex Team
Yes to access the check-box you have to implement MSAA, or you use Image Based recording of Ranorex.
Image Based Automation:
http://www.ranorex.com/support/user-gui ... ation.html
Regards,
Peter
Ranorex Team
Re: Could not access cells in a wxWindow
Liam
We have a similar situation with checkboxes - Just look for the item you want to check and use a relative coordinate to click the check box as below.... You can use paint to find out how many pixels to the left you need to go!
Dim rawtextCheck As Ranorex.RawText = "/form/element/rawtext[@caption='" & format(today, "dd/MM/yy") & "']"
rawTextCheck.Click(New Location(-32,6))
We have a similar situation with checkboxes - Just look for the item you want to check and use a relative coordinate to click the check box as below.... You can use paint to find out how many pixels to the left you need to go!
Dim rawtextCheck As Ranorex.RawText = "/form/element/rawtext[@caption='" & format(today, "dd/MM/yy") & "']"
rawTextCheck.Click(New Location(-32,6))
Re: Could not access cells in a wxWindow
Thank you again sdaly, I can see how it works in your way. But sometimes I will need to get the value of myCheckBox.Checked. So I will ask our developer to implement MSAA for this control.