Forum Discussion

JeanL's avatar
JeanL
Contributor
14 years ago

Hidden input / Hidden field

What is the best way to access and to get the value of a hidden field/input with TestComplete?



<input type="hidden" name="hidden_name" id="hidden_id" value="hidden_value" />




I found this:



"You can access this web page elements if you use the DOM or Hybrid web tree model. As for the elements properties' values, you can try obtaining them from the value of the outerHTML property."



But what does that mean in practice?
  • Hi,



    But what does that mean in practice?


    1. Enable the Hybrid model (see the "Web Tree Models" help topic).

    2. Find the target object among children of document.all in the Object Browser.

    3. Copy its full name.

    4. Address your object in a script.

    5. Get its innerText property value to obtain its contents.