Sunday, November 16, 2008

Daemon AutoIt3 process to click popup and alerts for Selenium

There are always all kinds of popup and alerts during selenium running. If they are not clicked out, Selenium may be blocked and timed out.

We recommend to use a free tool AutoIt3 to write daemon scripts to click out any popup. Make sure selenium run smoothly.

Sample Autoit3 scripts:
If WinExists("Alert") Then
    WinActivate("Alert")
    ControlSend ("Alert", "", "", "{SPACE}")
    ContinueLoop
EndIf

No comments:

Post a Comment