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 IS THE USE OF "FUNCTION GENERATOR" IN QTP?

2 Answers  


what to do if application have 3 "ok" button with same logical name and same properties, how qtp can identify them.

11 Answers   Infosys, Intel,


What is difference between Recording time object identification and Run time (Execution) time.

0 Answers   Tech Mahindra,


What is the difference between browser sync and page sync in QTP?

2 Answers  


Explain the concept of object repository?

0 Answers  






How to Close all browsers in reverse order.

3 Answers   Marlabs,


What is the difference between QTP 8.2 and QTP 9.2 ?

4 Answers   IBM, Infotech,


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

0 Answers   Value Labs,


What are the 3 main stages involved in testing with qtp?

0 Answers  


What is the real use of different actions in QTP

2 Answers  


if there r 10 windows open in QTP write a command to close all 10 windows at a time ?

10 Answers   Wipro,


How will you handle application crash using recovery scenario manager(step by step process)?

1 Answers  


Categories