can u Give Procedure to Handle Pop Window & write Code for
that

Answers were Sorted based on User's Feedback



can u Give Procedure to Handle Pop Window & write Code for that..

Answer / m.hemakumar

you can use pop up recovery scenario to recover from problem


assume a popup window contains yes ,no ,cancel buttons

Function Name: Popup_Recover()

public function Popup_Recover()

if Browser("title:=*").Dialog("name:=.*").Link
("name:=Yes").Exist Then
Browser("title:=*").Dialog("name:=.*").Link
("name:=Yes").Click
End If
End Function

Is This Answer Correct ?    6 Yes 1 No

can u Give Procedure to Handle Pop Window & write Code for that..

Answer / siva

if u enter the invalid password means at that time u can get
the pop up message
for ex
browser(logical name).page(logical name).link(element).set
datatable("username",2)

browser(logical name).page(logical name).link(element).set
datatable("password",2)
if u enter the invalid password means u get the pop up message

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

How you handles Pop-up windows which are Dynamically changing in Runtime?

2 Answers  


Hello Everyone, Please provide me the practical example of business component concept of QTP.Like how to create business component,how to connect the quality center etc.... Thanks in advance, Gaytri

0 Answers  


• What type of testing questions will be asked for 2+ yrs exp people in interview?

0 Answers  


How to create an Action Template?

1 Answers  


In qtp, how you can get the last character from a string?

0 Answers  






What is the use of Accessibility check point?

8 Answers   BirlaSoft,


I want to know what are QTP functons and what are VB script functions. What is the difference between them.When we have to use these functions.

0 Answers  


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

0 Answers   IBM,


I need to know how to Automate a Username and Password for a Web-based product? I'm scripting 3 different types of surveys but each Survey requires a Username and Password which is always the same. I can I do this using QTP?

3 Answers  


one page contain next button.when we enter that its not going to next page.what type of error that one.

3 Answers   TCS,


Syntax for how to call one script from another? and Syntax to call one "Action" in another?

3 Answers  


who is developed QTP ? is it from Mecury or HP

2 Answers  


Categories