it will work
On Mon, Aug 1, 2016 at 11:23 PM, pradeep <[email protected]>
wrote:
> Hello guys,
>
> I have attended QTP interview @broadridge hyd he asked me this question
>
> webtable was there 3 rows 3 columns inside webtable all are webelemnts and
> 9 numbers(3,1,9,4,7,2,6,5,8) were there inside these webelements.we have to
> retrieve all these 9 numbers and sort them.
>
> I have written this below code please check once and let me now anything
> wrong and if any better solutions for this.
>
> set wb=browser().page().webtable()
> rc=wb.rowcounnt
> For i = 1 To rc
> cc=wb.columncount(i)
> For j = 1 To cc
> txt=wb.childitem(i,j,"Webelement",0).getroproperty("innertext")
> a=a&txt&";"
> Next
> Next
> b=split(a,";")
> For i=0 To ubound(b)
> For j=0 To ubound(b)
> If strcomp(b(i),b(j),1) < 0 Then
> temp = b(i)
> b(i)=b(j)
> b(j)=temp
> End If
> Next
> Next
> For i=0 To ubound(b)
> msgbox b(i)
> Next
>
> --
> --
> 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/d/optout.
>
--
Vamsi Reddy
--
--
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/d/optout.