Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive programming variable issue
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
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 :

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
Reply


Messages In This Thread
Descriptive programming variable issue - by pooja7 - 02-17-2012, 01:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,959 04-25-2019, 08:17 PM
Last Post: Ankur
  UFT Tool support with Descriptive programming laks 1 1,803 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,840 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 3,095 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP
  Inserting variable values into Descriptive Programming Functions eske99 2 3,520 12-18-2015, 01:47 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)