Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to count the total number of buttons in a page using QTP .

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.19k
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: