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
When you open QTP, how many sheets you can see?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
how to convert 100 into hundred repees only and viceversa
What are the factors on which script execution time is dependent?
How to get Traceability matrix from TD?
What is Test Fusion Report in QTP?
How to test login module with different username and password by using data driven testing in QTP?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
what is the latest version of QTP? Main difference between 9.2 and 10 version
What is quicktest professional window?
when will you do debug your script? and explain that process?
What contains Data Driven Framework document in qtp?
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)
who QTP recognizes the object stored in object repository?
How to use Environment parameterization? Explain with an example.