lazerpld Posted December 4, 2017 Share Posted December 4, 2017 I am trying to set up a simple login script with AutoIT to work with VMware ESXi. The web page simply has username and password fields as well as a login button. I have no issues setting the text into the two fields by use of _IEFormElementSetValue ($username, "blablabla") But the login button remains disabled; therefore i cannot click it. If i manually type a space or any character into the text boks where "blablabla" is already put in, the button is enabled. It is as if the inputted text is not recognized and still being evaluated as empty. In the html code the button looks like this: <input id="submit" class="button blue" type="submit" value="Log in" ng-disabled="credentials.username === '' || loggingIn" disabled="disabled"> Anyone knows why this happens and how to handle this? Link to comment Share on other sites More sharing options...
lazerpld Posted December 4, 2017 Author Share Posted December 4, 2017 Solved it by doing following: _IEAction ($username, "focus") Send("AA") _IEFormElementSetValue ($username, "tedsfsdfsdffst") Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 4, 2017 Moderators Share Posted December 4, 2017 @lazerpld it is great you resolved your issue (you could also have just used PowerCLI). In the future however, please pay attention to where you post. The DEV forum very clearly states: Quote Do not create AutoIt-related topics here, use AutoIt General Help and Support Thread moved to the appropriate forum. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! 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