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

Answers were Sorted based on User's Feedback



HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is ..

Answer / shiva kumar dokka

if it is a windows based application, then it will be in
this way :
x= Window("Windowname").winedit("editboxname").Getvisibletext
msgbox x (or)

if it is webbased application then :
x =
Browser("Browsername").Page("Pagename").Webedit("Webeditboxname").GetROProperty("value")
msgbox x

Is This Answer Correct ?    29 Yes 8 No

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is ..

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

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is ..

Answer / a.thirumalareddy@gmail.com

systemutil.Run "iexplore.exe", "newtours.demoaut.com"

getValue=Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").GetROProperty("name")
msgbox getValue

If name<>userName Then
Browser("Welcome: Mercury Tours").Page("Welcome: Mercury Tours").WebEdit("userName").Set "thirumala"
Else
Reporter.ReportEvent micfail, "check edit box existancy", "Edit box is not existed"
End If

Is This Answer Correct ?    9 Yes 2 No

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is ..

Answer / sree

val=window("customer").edit("").GetTOProperty("text")

msgbox val

if (val=true) then
msgbox "pass"
else
msgbox "fail"

Is This Answer Correct ?    10 Yes 5 No

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is ..

Answer / gavaskar reddy

a=inputbox("text")
msgbox a
if (a=true) then
msgbox "pass"
else
msgbox "fail"

Is This Answer Correct ?    4 Yes 11 No

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is ..

Answer / sdf

textProp=Browser("").Page().WebEdit().GetROProperties
("text")
If textProp<>"password" Then
msgbox "Enter Proper Password"
End If

Is This Answer Correct ?    11 Yes 19 No

HOW CAN WE GET THE VALUE OF TEXT BOX IN QTP? can you give me sample script for this where there is ..

Answer / ramakrishna

x=inputbox("text")
mdgnox x
if (x=true) then
msgbox "pass"
else
msgbox "fail"

Is This Answer Correct ?    7 Yes 21 No

Post New Answer

More QTP Interview Questions

Dear sir, i want to perform a QTP automated testing for mechancial engineering software like msc adams, msc nastran this softwares will help for mechanical engineering design analysis>> i know oad runner win runner, test director, QTp>> but i dont know how to use for automation

0 Answers  


Have you done batch testing in qtp? If yes how you are doing?

0 Answers  


How to create log file in qtp?

2 Answers   AppLabs,


what is the difference between parameters and arguments?

1 Answers  


How can you connect the database with QTP?

3 Answers  


what is difference normal,analog,low level recording in qtp? what is lowlevel recording?

2 Answers   JPMorgan Chase,


what is defination of regression testing?

3 Answers  


when qtp recognizes a web link like (hyper link)wich properties it is going to take to identify the objects unquely? what is Ini file in QTP?

1 Answers   Symantic Space,


Explain script generated after applying database check point?

2 Answers  


what is the extension of new local object repository?

5 Answers  


WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?

2 Answers  


Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?

1 Answers  


Categories