can u give one scenario for for PopWindow Exception & write
Code for that?
Answer Posted / nani
Hi,
The best example for popup window is when ever your login
in gmail then you will receive a pop message box for
remembering password at that time you have to clck any one
of the optin like remember me or not now..
instead of writting code repeatedly for this one..
just create recovery sceneriao and use it.
otherwise just create a function and store it in utility
file then use it anywhere.
eg:
Function LoginPopup.
If Object_Exixt(Browser("name").Page("Name").Dialogbox
("name")) then
ObjClick(Browser("name").Page("name").winbutton
("buttonname"))
End Function.
just u can use this function where you want in the code.
Nani..
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Where we can use the analog mode and where we can use the low – level mode?
What is quicktest professional window?
How to release all resources file from the QTP?
I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?
What is the difference between the design-time and run-time data tables?
how do i know how to use tools
Can we write winrunner language i.e TSL in QTP tool?
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
Explain the concept of object repository?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
Explain xml checkpoints.
What ate the Technologies supported by QTP?
In an interview, what r the general questions asked in SQL which is realted to testing ?pls give me anwser to this question?
how to test Web application using QTP software
Explain how qtp identifies objects?