Jump to content

Delay in Firefox launch


Saub
 Share

Recommended Posts

Hi there, I am using autoIT to launch Firefox through my selenium script. It works. But, it takes around 1 minute in the beginning to enter logins in the Windows authentication pop-up. Here is what I have -

            //Initialize AutoIT

            var AutoIT = new AutoItX3();

             AutoIT.WinWait("Authentication Required");

            AutoIT.WinActivate("Authentication Required");

            AutoIT.Send("domain\\username");

            AutoIT.Send("{TAB}");

            AutoIT.Send("Password");

            AutoIT.Send("{ENTER}");

Link to comment
Share on other sites

  • 3 weeks later...

I am honestly not sure what you are trying to do here, but here is what I use... this will call the default browser, not Firefox specifically and it works in seconds.

This code will not work, as I have removed hundreds of lines.

;Create the list window in the GUI
$List = GUICtrlCreateList("", 0, 0, 120, 297, BitOr($WS_BORDER, $WS_VSCROLL))
GUICtrlSetState($List,$GUI_FOCUS)

;Create the list of Servers
GUICtrlSetData($List, "||AR DEV| (ETC,)

;Create the buttons
$Wmc = GUICtrlCreateButton("Launch WMC/Browser", 160, 190, 120, 30)

;when selecting the server and clicking the WMC button this Case is selected and calls the webpage
        Case $Wmc
            Switch GUICtrlRead($List)
           Case "AR DEV"
                    ShellExecute("URL path")

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...