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 / 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 / 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 / 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

how to load all resource files(function libraries,object repositories etc) into tests without associating them?

1 Answers  


What is the difference between link and hyperlink?

1 Answers  


Syntact for how to call one script from another? and Syntax to call one "Action" in another?

1 Answers  


what function you write to do database testing with the help of qtp?

1 Answers  


what is the Exact Meaning of Environment Variables?

2 Answers   Semantic Space,


what is the difference between action and function

11 Answers   AppLabs, BirlaSoft, Infosys,


i have string "I LIKE INDIA"..how to i get LIKE from the sting..

6 Answers   HealthAsyst,


does qtp need record and playback in realtime. plz tell exactly wat happens

3 Answers   HP,


scalability testing comes under in which tool?

4 Answers   EpuraTech,


Shall we add Local Repository to shared object repository,if yes,how we add

5 Answers  


What is a checkpoint? How many check points are there in qtp?

1 Answers  


what are recovery management techiniques?

1 Answers  


Categories