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

what is the defference between calling ation and called action?

1 Answers  


Where the text version of script file located in file system?

1 Answers  


Wt is the difference between Business Component and scripted component?

1 Answers   BSL,


how to retrieve the column headers in database using vbscript statement in QTP

1 Answers  


what is the latest version of QTP? Main difference between 9.2 and 10 version

0 Answers  






How to "Turn Off" QTP results after running a Script?

4 Answers  


how u write vb script in qtp pls give me some basic script and some material

32 Answers   Datamatics, UHG, Winit,


How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.

1 Answers  


how to calculate no. of repeating characters in a a string..please give me the code

14 Answers   CTS, Hexaware,


We have an application which generates links( more than thousand) based on the time stamp dynmically.Each link will download an xls file. we are supposed to click a particular link (which link to click will be obtained thru some buisiness logic).Now the issue is QTP is not recogniging the link(say Var1) though its properties showed mandatory fields text=xyz and html tag=A.I used following code to do this. Browser("ABC").Page("123").Link("text:=" &Var1,"html tag:=A").click, can any one suggest why this is not recognised by QTP though syntax is correct?(Is there any sync issue to be considered?Because on clicking the link it will take 5 mins to open that file)

3 Answers  


Tell me few important difference Between QTP and WinRunner?

3 Answers   Syntel,


How to make arguments optional in a function?

1 Answers   IBM,


Categories