Jump to content

Login button doesnt recognize non-empty value set by _IEFormElementSetValue


 Share

Recommended Posts

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?

esxidisabled.PNG

esxienabled.PNG

Link to comment
Share on other sites

  • Moderators

@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

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