how to retrieve inputtag value? (VB)

Class library usage, coding and language questions.
jminch270159
Posts: 5
Joined: Tue Jul 19, 2011 9:28 pm

how to retrieve inputtag value? (VB)

Post by jminch270159 » Mon Aug 22, 2011 6:06 am

I have a container in the GUI I'm trying to test that is an HTML dom. With Spy I can find the text field path I'm trying to capture the value of /dom[@domain='htmlviewer.company.com']/body/table/tbody/tr/td..../input[@title~'^My\ Field\ Name']"

which I know from looking at my GUI or at Spy has a value of 1234567890.

How do I capture the value 1234567890 which could be different each time?

Do we have to create an object of type text, or inputTag in order to use a function? I'm only familiar with
using the ranorex.validate.exists and similar type methods for objects in the repository. How do you retrieve an input tag value for which validate would not apply?

jminch270159
Posts: 5
Joined: Tue Jul 19, 2011 9:28 pm

Re: how to retrieve inputtag value? (VB)

Post by jminch270159 » Mon Aug 22, 2011 6:19 am

Possibly answered my own question.

After adding findings from spy into repository, when in usercode in studio, am able to type

repo.webdocument

and the context help displays a drop down of the repository contents allowing me to choose the webdocument
that got populated into the repository from spy.

Then, further using the context help, was able to figure out
repo.WebDocumentHTMLviewer_company_com.SomeBodyTag.InputTagMyFieldName1.TagValue