Hi, We can use Execute statement to create an object for below scenario. We will have to ensure it is passed as a string as shown below.
Execute "Set Var1=var" Regards, Girish On 20 Feb 2016 05:47, "Ayaz Ahmed" <[email protected]> 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. > -- -- 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.
