how to retrieve inputtag value? (VB) : Automation API

how to retrieve inputtag value? (VB)

Class library usage, coding and language questions.

how to retrieve inputtag value? (VB)

Postby jminch270159 » Mon Aug 22, 2011 7: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 10:28 pm

Re: how to retrieve inputtag value? (VB)

Postby jminch270159 » Mon Aug 22, 2011 7: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
jminch270159
 
Posts: 5
Joined: Tue Jul 19, 2011 10:28 pm


Return to Automation API

Who is online

Users browsing this forum: No registered users and 0 guests