Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

HOW TO FIND WEBTABLE? HOW TO RETRIVE THE WEBTABLE VALUES? PLZ TELL ME THE PROCEDURE.

2 Answers   TCS,


write the code to reverse a string without using Strrev built in function.

14 Answers   ADP,


What is data driver in qtp?

0 Answers  


1) What is the diff Between GetRoproprty and Gettoproperty? 2)What is Redim?

5 Answers   STC,


How many types of Parameters are available in QTP?

1 Answers  


can u write one user defined function for webedit class.

6 Answers   Cap Gemini,


what is the difference between parameters and arguments?

1 Answers  


What is the Diff between Image check-point and Bit map Check point?

3 Answers   Ordain Solutions,


How QTP recognizes Objects in AUT?

1 Answers   Crea,


How to define array in qtp?

0 Answers  


What is the use of running the scripts in Hidden-mode in UFT?

0 Answers  


If the objects hierarchy is changing from build to build, then how you will handle that condition?

0 Answers  


Categories