Drac89 Posted August 30, 2020 Posted August 30, 2020 Hi Team, I am trying to send credentials via autoit on a web app launched via IE. I am passing the credentials into variables and trying to send them send("$username") but username field isn't getting populated. But the password field, I can send the credential, also when I try ieformsetvalue and set the username wrt username field fetched, it's getting send but my login button remains greyed out. Can angularjs keydown function interfere in the autoit send process and not allow the credentials passed if it's not typed out? This is a general question to understand if javascript or angular js etc could detect if the credentials are automated, then it might not detect it as a keydown?
Danp2 Posted August 30, 2020 Posted August 30, 2020 Send isn't a good option. You should be using the _IE* functions instead. Yes, some javascript frameworks can make it more difficult to automate. But there are usually ways to trigger an event to overcome these issues. Can you share the URL so that we can take a look at the site? Latest Webdriver UDF Release Webdriver Wiki FAQs
Drac89 Posted September 6, 2020 Author Posted September 6, 2020 Hi @Danp2 i had used _IEFormElementSetValue($email_field, $username) _IEFormElementSetValue($pass_field, $password) and it is passing as well, but the login button, doesnt become active, even though the input is already sent for the login fields.
Danp2 Posted September 6, 2020 Posted September 6, 2020 Can't really assist further without more details, such as the URL. 😉 Latest Webdriver UDF Release Webdriver Wiki FAQs
Drac89 Posted September 6, 2020 Author Posted September 6, 2020 oh sorry, this is beyondtrust appliance , that we do operational task on, so its just https://<IP> , The below is what is seen in the login button <bt-button mutable-label="standard.translations.Login" class="login ng-isolate-scope disabled" type="filled" enter-key="standard.submit()" ng-click="standard.submit()" progress-bar="standard.service().standardProgressBarState" is-disabled="(!standard.username || !standard.password)" tabindex="-1"><!-- ngIf: button.progressBar != undefined --><div ng-if="button.progressBar != undefined" class="progress-bg ng-scope ng-hide" ng-show="button.progress.show" style="margin-top:-4px;"> and sending with send() works now but need to work with _IEFormElementSetValue. attached is the username field details seen.
Danp2 Posted September 6, 2020 Posted September 6, 2020 Have you tried manually triggering the associated events? Something like this -- _IEFormElementSetValue($email_field, $username) $email_field.fireEvent("OnChange") _IEFormElementSetValue($pass_field, $password) $pass_field.fireEvent("OnChange") Latest Webdriver UDF Release Webdriver Wiki FAQs
Drac89 Posted September 7, 2020 Author Posted September 7, 2020 Ohhh didn't know this.. Thank you so much for responding.. Will test this out and look further on these..
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