Micro Focus QTP (UFT) Forums
How to Retrieve the value using DOM - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to Retrieve the value using DOM (/Thread-How-to-Retrieve-the-value-using-DOM)



How to Retrieve the value using DOM - rakeesh_28 - 08-14-2012

Hi All,

I am using FF Browser and i would like to retrieve the Innertext of the WebElement using DOM model or using Descriptive programming, Can any one help me out.

I have pasted the sample HTML code

Code:
<div class="login">
<div class="credentialsBlock">
<p class="error"> Error: Account Locked </p>
<fieldset>
</div>
how do i retrieve the value "Error: Account Locked" from the above piece of code.

Can some one please help me with this.

Thanks
Rakesh