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

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me
sample script for this where there is some condition. like
if "text" THEN msgbox() else endif

Answer Posted / pooja

Using Object Spy find where u get the value for the
textbox, i.e in "text" property or "Value" property...

use "text" or "value" accordingly Getroproperty("text") or
Getroproperty("value")

If u want to chk whether the value in the text box
is "sunday" then....

a=Browser().page().frame().webedit().getroproperty("value")
if a=="sunday" then
msgbox ("displayed message is sunday")
else
msgbox ("msg is not sunday")
end if

Is This Answer Correct ?    20 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When you open QTP, how many sheets you can see?

1069


i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji

2100


how to convert 100 into hundred repees only and viceversa

1896


What are the factors on which script execution time is dependent?

1056


How to get Traceability matrix from TD?

1210


What is Test Fusion Report in QTP?

1161


How to test login module with different username and password by using data driven testing in QTP?

1142


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

1009


what is the latest version of QTP? Main difference between 9.2 and 10 version

2136


What is quicktest professional window?

987


when will you do debug your script? and explain that process?

1941


What contains Data Driven Framework document in qtp?

1970


i'm testing the webpage with QTP, in this wabpage i have to choose the CV from the window, but QTP can't recognize the object, so i used the Low LEvel Recording, but every time i run the test, QTP go to halt when it gets to the Recorded part, any solution for that?( except puting delay in the script and manuall selecting, because i've did that)

2012


who QTP recognizes the object stored in object repository?

2091


How to use Environment parameterization? Explain with an example.

1966