Jump to content

Function is never closed in your script


Recommended Posts

Hi,

I know this would be a a very simple and stupid question but as a newbee I am not able to resolve this error. Please help.

AutoIT_Selenium_Firefox_IE_Chrome_Authentication("Authentication Required","OK") Func AutoIT_Selenium_Firefox_IE_Chrome_Authentication($winTitle, $buttonName) WinWaitActive($winTitle) If WinExists($winTitle, "") Then Sleep(2000) Send("User") Send("{TAB}") Send("Password") Sleep(2000) Send("{TAB}") Send("{ENTER}") Sleep(2000) EndIf EndFunc


;### Tidy Error -> func is never closed in your script.

If I run this script it displays error "Unknown Function Name".

Regards,

ToolsQA

Link to comment
Share on other sites

  • Developers

Try posting the code again but this time with the proper newlines in there to understand what is happening.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

AutoIT_Selenium_Firefox_IE_Chrome_Authentication("Authentication Required", "OK")
Func AutoIT_Selenium_Firefox_IE_Chrome_Authentication($winTitle, $buttonName)
    WinWaitActive($winTitle)
    If WinExists($winTitle, "") Then
        Sleep(2000)
        Send("User")
        Send("{TAB}")
        Send("Password")
        Sleep(2000)
        Send("{TAB}")
        Send("{ENTER}")
        Sleep(2000)
    EndIf
EndFunc   ;==>AutoIT_Selenium_Firefox_IE_Chrome_Authentication

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...