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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Describe function procedure in vbscript.

553


Hi Friends... By using QTP , can we test .net products...and that product supports different languages.. thanx in advance..

4144


How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.

1789


What are the recording modes in qtp?

583


Is it possible to call win runner script in qtp?

627






who QTP recognizes the object stored in object repository?

1663


How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?

1283


How can you close the second opened browser?

804


How will you declare a variable in qtp?

556


To retrive the test data which tool vl use and whats basis u vl write test data? its urgent

1446


How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?

576


What do you mean by iteration?

630


What is the use of "New Property" in "Add properties" of testobject properties in object repository. How can i use "New properties" while writing scripts if i have assign some values to the testobject properties Can anyone help me? plz

1478


How can you send user defined messages to test report?

585


hi i have completed my b.tech in cse stream. now i am working in an organisation in testing department. i want do sap course but i dnt know which module will boost my career can anyone suggest me which is good for my career

1931