Please have a look at this:
a = Browser("Travel Boutique Online").Page("Travel Boutique
Online_2").webelement("innerhtml:=2622").getroproperty("y")
a=a+9
msgbox a

Browser("Travel Boutique Online").Page("Travel Boutique
Online_2").image("alt:=check","y:=a").click


Now please let me explain. As clear from code I am trying to
enter value of variable 'a' as Property y. But each time QTP
AND MY SYSTEM stops responding when this line is execcuted.

But When i enter some number in place of 'a' in the last
line. it works fine.

Please let me know what I am doing wrong at time of entering
the variable in last line.

Thanks a lot

Answers were Sorted based on User's Feedback



Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Bouti..

Answer / mmk

use & instead of +

Is This Answer Correct ?    2 Yes 1 No

Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Bouti..

Answer / anu

Browser("Travel Boutique Online").Page("Travel Boutique
Online_2").image("alt:=check","y:="&a).click

do this

Is This Answer Correct ?    1 Yes 0 No

Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Bouti..

Answer / nipunkumar

Dear MMK,

Solution told by u would add suffix to the retrieved value
of 'x'. Then please explain how this would help me

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

what are the qtp tester responsibilities?

3 Answers  


what is option explicit? what is the use of it?

9 Answers   Syntel,


Why we have to import data from excel sheet to data table?becoz v can directly use test data directly from xl know. can u all pls explain me clearly

1 Answers  


difference between recording methods and recording modes in QTP

5 Answers   Ordain Solutions,


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

0 Answers  






what are the challenges you have faced while testing web based application using the automation tools ?

0 Answers  


What is the limitations of BVA?

1 Answers   IBM,


Need one Urgent help please,for ex: first time i created Local reposory and convert that local to shared Rep and save in some where(by using Export local objetcs), unfortunately that saved repository is missed, now i want same repository,but iam not able to export the same repository second time?? i need that Repository only how to get???

2 Answers   TCS,


i am trying to capture the URL from the open browser and store it. pls give me solution how we can do this in QTP. thanks

2 Answers  


How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?

1 Answers   Motorola,


1)Difference Between Value & RawValue?

2 Answers   Wipro, Zensar,


How does quicktest professional identifies the object in the application?

0 Answers  


Categories