06-08-2012, 09:10 PM
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"
Hope this will help.
Regards,
Nilanjan.
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.