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
How can i check items sorted or not in a weblist ? Give me the script for this...
How to analyzing the checpoint results?
Explain data driven framework?
Is it possible to change the values of analog recording?
Step 3&4 are repeated until an the object in recognised uniquely.
When you open QTP, how many sheets you can see?
How to import a test case present in ".xls" file to TD under a Test set?
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
write script for bitmap image?
How to change the priorities of the recovery scenario properties?
How do you know the location Id of an object if you know its index id?
Mention the test steps of qtp.
Can I change properties of a test object?
What is RTM (require ment tracebulity marix) fromate?
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com