Hi Pavani,
You can do this using Child item property
 Function ClickCheckbox(Object,StrExpValue)
    rc=Object.GetRowCount
    For i=1 to rc
      cc=Object.Columncount(i)
       For J=1 to cc
          strActValue=Object.GetCellData(i,j)
          If ucase(strActValue)=Ucase(StrExpValue) Then
              Set Checkbox=Object.Childitem(i,j-1,"WebCheckbox",0)
              Checkbox.Click
              Exit For
          End if
       Next
      Exit For
   Next
   Exit For
Next  

How will you click all the child links under a link

Using Childobjects concept we can click all the links
Set Desc=Description.create
Desc("micclass").value="Webcheckbox"
Set Childobjects=Object.Childobjects(Desc)
For i=0 to Childobjects-1
    Childobjects(i).Click
Next

you can click child links under a link using index

Please let me know if you are not clear

Venkat Reddy
9884524606

On Thursday, January 17, 2013 8:50:01 PM UTC+5:30, pavani b wrote:
>
>
>
> Web table contains 4 rows and 4 columns first column contains check boxes 
> and second column contains values based on the value passed which matched 
> in the second column
>
> a.      Select the respective check box in the first column which is 
> dynamic whose properties and values are changing dynamically whose values 
> are not constant write a generalized reusable function
>
> 2.      How will you debug the 404 error occurred when clicking on some 
> link
>
> 3.      How will you click all the child links under a link
>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to