A HTML button is identified as a WebButton object by QTP. Below is the script which you
Can run in QTP to find the total number of Buttons in the HTML page .
First Create a Button object
Set objButton = Description.create
objButton(micclass).value = WeButton
Obtain the total count of Button in a web page
Set webButtons = Browser(Google).page(Google).childObjects(objButton)
ButtonCount = webButtons.count
Print ButtonCount
0 Comment(s)