Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to handle pop up blocker.
#5
Solved: 10 Years, 9 Months, 1 Week ago
Hi,

I think when the Pop Up blocker appears on the screen then we can Right click on that message and go for the Temporary allow option .

So if that is the scenario, then we are able to handle it via scripting.


'Handling the Temporary allow Scripts and windows Prompt message and click OK"
Code:
Set obj1=CreateObject("Mercury.DeviceReplay")

If Browser("Intelex v5").WinButton("This website is using").Exist(4) Then
x = Browser("Intelex v5").WinButton("This website is using").GetROProperty("abs_x")
wait(2)
y= Browser("Intelex v5").WinButton("This website is using").GetROProperty("abs_y")

'Click RIGHT_MOUSE_BUTTON

obj1.MouseClick x,y,2
wait(2)
Set wsh=CreateObject("WScript.Shell")

wsh.SendKeys "{DOWN}"

wsh.SendKeys "{ENTER}"
wait(2)
Browser("Intelex v5").Page("Intelex v5").Frame("content_2").WebButton("Save/Exit").Click

end if


Hope this will help.

Regards,
Nilanjan.
Reply


Messages In This Thread
How to handle pop up blocker. - by chetan-24 - 11-28-2008, 03:20 PM
RE: How to handle pop up blocker. - by yaron.assa - 11-29-2008, 12:22 PM
RE: How to handle pop up blocker. - by chetan-24 - 11-29-2008, 01:44 PM
RE: How to handle pop up blocker. - by devanggoel - 02-18-2010, 04:46 PM
RE: How to handle pop up blocker. - by nilanjans - 06-08-2012, 09:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can UFT Handle Detecting Redirects? zunebuggy 0 784 05-28-2020, 06:50 PM
Last Post: zunebuggy
  SAP GUI gets hanged while closing the Windows Pop Up kathirvelnagaraj 0 5,337 10-23-2015, 06:47 PM
Last Post: kathirvelnagaraj
Rolleyes QTP pop up window handling piyush8793 3 16,457 10-15-2015, 11:03 PM
Last Post: Venkateswarluponna
Exclamation Login & logout in Siebel and clicking pop-up button yuetling926 7 10,712 07-09-2014, 10:43 PM
Last Post: hhamilton
  select a date from pop-up calendar Dertjon 1 5,598 05-13-2014, 02:29 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)