Find an Item (as Text) from a list

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
koxi
Posts: 2
Joined: Thu Apr 04, 2013 1:07 pm
Location: Herzogenaurach, Germany

Find an Item (as Text) from a list

Post by koxi » Thu Apr 04, 2013 1:53 pm

Dear All!

I have a problem with selection of an Item from a list. A have a list with many CPU´s and I must find one of them. But always only this type. My problem, this CPU is not in the same position in the list. The CPU what I need is the CPU 315-2AG12 315SB/DPM

It´s possible to find the CPU in the list? If yes, how?

See attached screenshot and the snapshot.

I use a ranorex 3.0.3.13152 and a Win7 Professional 64Bit
Many thanks for your answers.

Best regards
Norbert
You do not have the required permissions to view the files attached to this post.

hs.fk
Posts: 12
Joined: Thu Jul 12, 2012 11:47 am
Location: Hamburg

Re: Find an Item (as Text) from a list

Post by hs.fk » Fri Apr 05, 2013 10:05 am

You can use a RXPath like this

Code: Select all

/form[@automationid='_frameworkWindow']/form/element/tree/treeitem/text[@name='CPU 315-2AG12 315SB/DPM']/..
Doc

koxi
Posts: 2
Joined: Thu Apr 04, 2013 1:07 pm
Location: Herzogenaurach, Germany

Re: Find an Item (as Text) from a list

Post by koxi » Mon Apr 08, 2013 8:18 am

Hi hs.fk

thank you very much for your answare. I tried it today and it works :wink: Problem solved.

Best regards
Koxi