RxPath for Recognizing forms : Automation Tools

RxPath for Recognizing forms

Ranorex Spy, Recorder, and Studio.

RxPath for Recognizing forms

Postby Luis Leon » Thu Sep 30, 2010 6:47 pm

Hi,

I have been using Ranorex for a while now and I run into the following issue:

The main Window of my application changes its title depending on the users actions. By default the recorder locates the form by its accessible name but when a given user action (or localization setting) changes the form title, the test execution crashes because the base item (in this case the form) is not being found.

I run into this problem with WinForms forms and used the "@class" attribute as a workaround, but when it comes to WPF the class attribute is displayed like [process.exe ;; <GUID> ]. So far I haven't being able to compose a RxPath that locates this form regardless of its title.

So, my questions are:

-Is there a workaround for my issue?

-What is the best way to identify a WinForms and/or WPF form that does NOT utilizes its accessible name or caption?
Luis Leon
 
Posts: 10
Joined: Tue Aug 10, 2010 1:18 am

Re: RxPath for Recognizing forms

Postby Ciege » Thu Sep 30, 2010 11:40 pm

Have you sniffed around with RanorexSpy to look for other identifiers?
When the title of the form changes is there anything that remains the same where you can look for a partial match?
Do you know the possible form names? You can create a ranorexpath that uses ORs in it...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...
User avatar
Ciege
 
Posts: 965
Joined: Thu Oct 16, 2008 7:46 pm
Location: Arizona, USA

Re: RxPath for Recognizing forms

Postby artur_gadomski » Fri Oct 01, 2010 7:53 am

If there is always a common part in form names you can also use regular expressions in RxPath.
User avatar
artur_gadomski
 
Posts: 125
Joined: Mon Jul 19, 2010 7:55 am
Location: Copenhagen, Denmark

Re: RxPath for Recognizing forms

Postby Luis Leon » Fri Oct 01, 2010 7:40 pm

Hi,

Thanks for the replies.

The only common identifier found with the Spy is the "@class" attribute which is displayed in a a very odd way will look something like [executable.exe ;; GUID] but I can't manage to get this parameter to work.

I'll try to use the regular expressions and I'll keep you posted.

Regards
Luis Leon
 
Posts: 10
Joined: Tue Aug 10, 2010 1:18 am

Re: RxPath for Recognizing forms

Postby Luis Leon » Mon Oct 04, 2010 9:18 pm

Hi,

Thanks for the help, regular expressions solved my issue.

Regards,
Luis Leon
 
Posts: 10
Joined: Tue Aug 10, 2010 1:18 am


Return to Automation Tools

Who is online

Users browsing this forum: No registered users and 0 guests