02-17-2012, 01:06 PM
Hi All,
There are 3 Add buttons on my screen; so using Descriptive programming; If I write and execute the following line of code to click the 2nd Add button :
Above line works perfectly well...
But when I write the following
It just does not work! - I have tried most of the the permutations and combinations with the quotes.
Any ideas on how to accomplish this?
Regards
Pooja
There are 3 Add buttons on my screen; so using Descriptive programming; If I write and execute the following line of code to click the 2nd Add button :
Code:
Browser("Test").Page("Test").Frame("Test").WebButton("name:=Add","index:=1").Click
Above line works perfectly well...
But when I write the following
Code:
strVariable= "name:=Add"",""index:=0"
--- including double - double quote in between as i need QTP to understand double quote literally
Browser("Test").Page("Test").Frame("Test").WebButton(strVariable).Click
It just does not work! - I have tried most of the the permutations and combinations with the quotes.
Any ideas on how to accomplish this?
Regards
Pooja