How to find the element in the client area

Class library usage, coding and language questions.
Poblarp
Posts: 7
Joined: Thu Oct 20, 2016 3:23 pm

How to find the element in the client area

Post by Poblarp » Thu Apr 27, 2017 4:46 pm

Hi there,

I'm testing a desktop application and need to validate whether the mail which was sent is in the Sent Mailbox.

When I use the "TRACK" feature in the repository, it captures the entire client area. However, I would like to see whether there is an entry of recently sent mail on top line of the client area. There is no row and column in this client area.

The following is the RxXpath.

/form[@title~'^Admin\ Automation,\ Group\ :']/container[@controlname='panMain']/container[@controlname='ucTabAssistant']/?/?/container[@controlname='PageMail']/?/?/element/container[@controltypename='UltraTabPageControl' and @instance='0']/container[@controlname='ucMail']/container[@controlname='Panel2']/?/?/container[@controlname='panData']/?/?/container[@accessiblerole='Client']

Please see the attachment of the screen capture of this client area.

Basically, I would like to validate whether the top line has the recently sent mail.

Thank you very much for your time and kind assistance. I look forward to hearing from you.

Best regards,

Poblarp
Attachments
Search Element in Client area.jpg
Screen capture of the client area
Search Element in Client area.jpg (122.03 KiB) Viewed 450 times

Poblarp
Posts: 7
Joined: Thu Oct 20, 2016 3:23 pm

Re: How to find the element in the client area

Post by Poblarp » Thu Apr 27, 2017 4:48 pm

/form[@title~'^Admin\ Automation,\ Group\ :']/container[@controlname='panMain']/container[@controlname='ucTabAssistant']/?/?/container[@controlname='PageMail']/?/?/element/container[@controltypename='UltraTabPageControl' and
@instance='0']/container[@controlname='ucMail']/container[@controlname='Panel2']/?/?/container[@controlna

me='panData']/?/?/container[@accessiblerole='Client']

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to find the element in the client area

Post by Support Team » Thu Apr 27, 2017 6:34 pm

Hello Poblarp,

Typically you can target the first row by creating a path that targets all rows, then specify the index with [n].

All rows

Code: Select all

/dom//table/tr
First Row

Code: Select all

/dom//table/tr[1]
With a Ranorex Snapshot (*.rxsnp) of your application, we can provide a more accurate RxPath to target the first row in your application.

Kind Regards,
Ned
.
Image

Poblarp
Posts: 7
Joined: Thu Oct 20, 2016 3:23 pm

Re: How to find the element in the client area

Post by Poblarp » Thu Apr 27, 2017 8:10 pm

Hi Ned / Support Team,

I would like to thank you very much for your reply and suggestion. I sent you the snapshot file as requested to [email protected] so you could have a full picture of application and RXxpath. I look forward to hearing from the [email protected] for details and instruction to find this UI elements from the first row.

Best regards,

Poblarp