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
Differentiate the type of test cases which can be automated and which cannot be automated?
How do we handle run-time errors?
please any one can explain the keyword driven framework. with gmail example.
What are the general steps involved in the data driven framework?
can u please explain what is the exact difference between qtp8.2 and 9.0
I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.
What are the factors on which script execution time is dependent?
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
Hi , I am facing issue QTP 10.0 with oracle ERP 11i .When QTP opens,click sub links on ERP ,FORM is not opening getting unexpected Internet explorer error message with send or don't send report.So unable to work with forms using QTP.
your coming from electrical backgroung..but y ur coming to software side?
Explain the difference between call to action and copy action?
Explain building blocks of the bpt framework ?
In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls
What is quicktest professional (qtp)?
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana