Use  row = oChild.RowCount instaed of oChild(0)

Thanks...
Akhalesh


On Mon, Jul 15, 2013 at 4:45 PM, Ta Se <[email protected]> wrote:

> Hi all,
>
> I have got exception Object Required "obj" in below script, anyone could
> you help me.... thanks a lot !!
>
>  Set oDesc = Description.Create()
> oDesc("html id").value ="ViewTable"
> oDesc("html tag").Value = "TABLE"
>
> Set oChild = Browser("User").Page("BGC
> User").Frame("PWGadget2Ifr").ChildObjects(oDesc)
>  row = oChild(0).RowCount
>
>   For i = 1 to row
>  val = oChild(0).getCellData(i,2)
>
>    If trim(val)=trim("Test Test") Then
>   Set  Obj = oChild(0).ChildItem(i,2,"WebElement",0)
>   Obj.Click
>  End if
>    Next
>
> Set oChild = Nothing
> Set oDesc = Nothing
>
> --
> --
> 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.
>
>
>



-- 
Akhalesh yadav
+919555717928
+919310680659

-- 
-- 
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