Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to handle pop up blocker.
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
hello
I have found such an interesting Problem at my site,
While i am running/Recording some script the script is recorded fine but while i am running that script at that time the pop up blocker has been generated.
Could anybody spacify that how can i handle that pop up blocker?
I am using IE 7 browser and my pop up blocker is already disable.

Thanks with Regards,
Chetan
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
Sorry, the only consistent a robust way would be to turn off the pop-up blocker:
Tools->Popup Blocker->Turn off
Reply
#3
Solved: 10 Years, 8 Months, 3 Weeks ago
Hello
I don't think it's only way to do so,

Please spacify you have some other option for that
either scripting or recovery scenario.

Thanks
Chetan
Reply
#4
Solved: 10 Years, 8 Months, 3 Weeks ago
ya dear there is a easy way to handle this type of problem by creating the recovery scenario.
and u can write the the script also with the condition like if this popup on then do that.
Reply
#5
Solved: 10 Years, 8 Months, 3 Weeks 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


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

Forum Jump:


Users browsing this thread: 2 Guest(s)