I have the following HTML tag, which QTP correctly identifies as a WebEdit
object:
<input style="width: 228px;" aria-describedby="x-auto-0" _id="Tenant" name=""
tabindex="1" id="x-auto-23-input" class="x-form-field x-form-text x-form-invalid"
type="text">
How do I get the _id
property from the HTML tag into an object property in QTP? I've used the Object Identification dialog to add both _id
and html _id
properties to the WebEdit
class. However neither are filled in when I use either the Object Spy or the Recorder.
Note that the page being tested contains a number of these text inputs, each with a blank name
but descriptive _id
. I'm trying to get the _id
into a property of WebEdit so I can refer to a particular text box by Browser("Browser").Page("Page"),WebEdit("_id:=Tenant")
.