There is one login screen,after accepting valid username
and apassword, it will show the next screen. In the 2nd
screen u r having 2 combo boxes, U have to select any item
from these, and click OK button. After closing that, it
will show the 3rd screen. If u click CANCEL button from 2nd
screen it will show the first screen. Write QTP script for
it???
Answer / uday
Hi,
The code looks like below:
browser().page().webedit().set "username"
browser().page().webedit().set "password"
browser().page().weblist().select "SelectItem"
btnName=browser().page().webedit().getROProperty("value")
if btnName="Cancel" then
check for 2 page itself
B().P().exists
else
check for 3rd page
end if
| Is This Answer Correct ? | 2 Yes | 9 No |
What are the Features & Benefits of Quick Test Pro ?
What will be the output of the statements below? On error Resume Next Sum 100/0 if Sum= 0 Then msgbox "Pass" else msgbox "Fail" End If
what is the general issues faced while using automation tool Qtp9.0
Explain how Does Run time data (Parameterization) is handled in QTP?
What is Data driven Testing Frame work.Anybody can expain it in Detail.. Pls anybody can give the answer.. Thanks in advance...
I am executing a batchfile.In one script on one Button i have inserted a checkpoint.It is in a loop,my checkpoint is going to fail sometimes.That failed results only I have to log in a file.How it's possible...pls give the solution for this?
WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
Why script error occur in between recording in qtp?
how to count the word "IS" is repeated in the application using DP
3 Answers DST Global Solutions,
How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it.
What are the types of Object Repositories in QTP?
1)What is the Difference Between WaitTo & Sync?