11-01-2011, 01:13 PM
Hi Azad,
Try this
If your page has more than one <H3> Tags and if the text you are requesting for, is not in the first <H3> Tag, the above code will not give the value you are expecting.In that case replace the 0 in above code with some value say i and to determine i's value run the the below code
Hope this helps you
Regards,
Ravi
Try this
Code:
DataTable.Value("MPI","Global")=Browser("micclass:=Browser").Page("micclass:=Page").object.getElementsByTagName("H3")(0).innertext
If your page has more than one <H3> Tags and if the text you are requesting for, is not in the first <H3> Tag, the above code will not give the value you are expecting.In that case replace the 0 in above code with some value say i and to determine i's value run the the below code
Code:
set oWebElement=Browser("micclass:=Browser").Page("micclass:=Page").object.getElementsByTagName("H3")
For i= 0 to oWebElement.length-1
msgbox " i= "& i &" And text = " & oWebElement(i).innertext
Next
Hope this helps you
Regards,
Ravi