Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get the text of a checkbox using QTP .

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 660
    Comment on it

    In the below code you can automate the web page using QTP and can find the text with the checkbox adjacent to it .

    Create a description property with micclass for web checkbox.

    Set oDesc = Description.create()
    Set oDesc = Description.create()
    oDesc(micclass).Value=WebCheckBox
    Set intCount=Browser().Page().ChildObjects(oDesc)
    strSearch =QTP
    For i=0 to intCount.Count -1
    strFound =Trim(intCount(i).GetROProperty(text))
    if strFound=strSearch then 
    MsgBox(Found the checkbox with text) & strSearch
    End If
    Next 
    

 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: