toolsqa Posted April 4, 2014 Share Posted April 4, 2014 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 More sharing options...
Developers Jos Posted April 4, 2014 Developers Share Posted April 4, 2014 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 More sharing options...
Celtic88 Posted April 4, 2014 Share Posted April 4, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now