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
Hi, How Accessibility checkpoint in QTP can be implemented in the test script?
How many ways we can parameterize data in quicktest professional (qtp)?
How you know that a test case is a regression test case
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
How to execute the WR Script through QTP? I have WinRunner script with initialization script, common scripts, GUI AND functions. I connected WR through QTP with "call to WinRunner" option but I am getting problem after connecting to WinRunner i.e. showing "Do you want to quit now" with 'yes' and 'No' message box
Explain process of smart Identification in QTP?
How to use debug tools?
how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me
How to remove associated function library?
Describe synchronization point.
how many maximum number of virtual users we can create?
How can I import environment from a file on disk?
How many types of recording modes in qtp? Which will be used when?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?