It is just tell QTP to treat "[" as a regular character,so you have to use backslash infront of "[" Like this for every parameter with "[" character .
On Sun, Jul 5, 2015 at 11:15 PM, axn700 <[email protected]> wrote: > > > On Thursday, July 2, 2015 at 5:42:32 PM UTC+5:30, Ayaz Ahmed wrote: >> >> try now... >> SystemUtil.Run"Chrome.exe","http://www.mortgagecalculator.org" >> Browser("title:=Mortgage Calculator").Page("title:=Mortgage >> Calculator").WebEdit("micclass:=WebEdit","name:=param\[homevalue\]").Set"200000" >> Browser("title:=Mortgage Calculator").Page("title:=Mortgage >> Calculator").WebEdit("micclass:=WebEdit","name:=param\[principal\]").Set"100000" >> Browser("title:=Mortgage Calculator").Page("title:=Mortgage >> Calculator").WebButton("micclass:=WebButton","name:=calculate").Click >> >> On Tuesday, June 30, 2015 at 9:11:41 AM UTC-4, axn700 wrote: >>> >>> Could you please tell me where I am going wrong here? >>> SystemUtil.Run"Chrome.exe","http://www.mortgagecalculator.org" >>> Browser("title:=Mortgage Calculator").Page("title:=Mortgage >>> Calculator").WebEdit("micclass:=WebEdit","name:=param[homevalue]").Set"200000" >>> Browser("title:=Mortgage Calculator").Page("title:=Mortgage >>> Calculator").WebEdit("micclass:=WebEdit","name:=param[principal]").Set"100000" >>> Browser("title:=Mortgage Calculator").Page("title:=Mortgage >>> Calculator").WebButton("micclass:=WebButton","name:=calculate").Click >>> >>> Why is above code not working? >>> >>> Thank you very much. It solved the issue. I would have never guessed the >>> solution. >>> >> Thanks for the help. > >> >>> >>> -- > -- > 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.
