If regex does not work, try this:

a = Split(Browser().Page().WebList().GetROProperty("all items"), ";")
For i = 0 To UBound(a)
  If (a(i) = "test (16023)" Then
    Browser().Page().WebList().Select "#" & i
    Exit For
  End If
Next


On Thursday, October 4, 2012 1:21:33 AM UTC-10, gajendra wrote:
>
> Hi,
>
> I have a string in the weblist "*test *(16023)". 
>
> Problem is the number (16023) changes frequently. 
>
> Is there any way, where i just pass the text "*test*" or with some 
> regular expression and make "test (16023)" selected?
>
> Regards,
> Gajendra
>

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