var="Browser(""title:=.*"",""index:=0"")"
Execute "Set Var1=var"


I tried this but still get var object required error. Do you mind run this 
at your end and then share your experience.

Thanks

On Friday, February 19, 2016 at 7:17:15 PM UTC-5, Ayaz Ahmed wrote:
>
> Hi everyone,
>
> This been challenging me for path 2 years. If you have qtp then add a 
> breakpoints on the second statement and execute the code. Add the "Var" to 
> watch window. and then edit the value and strip the staring and ending 
> double quotes.
> this will change the string to Object. How we can do the same using the 
> code.
> It will be a big win if someone can find the solution.
>
>
>
> Create an object by passing a browser path in a variable.
>
> var="Browser(""title:=.*"",""index:=0"")"
> Set Var1=var
>
>
>
> Ayaz
>

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

Reply via email to