Repository navigation
Find the unnamed Saldeo username field on the current login form - #3
Merged
Merged
Conversation
The Angular login input has no name or formcontrolname (those sit on ds-input) and an unstable mat-input id, so the old selectors never matched it. Use the visible text field in the password form, including qa-id="username", and accept the English "Log in" button. Credentials still come only from the 0600 login file. Co-authored-by: wydrox <wydrox@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The current Saldeo login page (
/login/login.hta) is an Angular Material form. The username control is atype="text"input withqa-id="username"andautocomplete="off". It has nonameand noformcontrolname— that attribute is on the<ds-input>host — and itsmat-input-Nid is not stable. The old username selectors matched nothing, so auto-login stopped after “czekam na formularz logowania” even whenSALDEO_USERNAME/SALDEO_PASSWORDwere saved. The password field and thetype="submit"button (“Log in”) already matched.The script now picks the login field by stable hints (
qa-id, hostformcontrolname, legacy name/id/email) and, if those are absent, by the visible text input in the same form as the password. It submits “Log in” / “Zaloguj” and ignores the password visibility toggle. The password still comes only from the mode-0600 login file, not from argv, env, or logs.Verified against the live page in headless Chromium: the saved-style credentials are written into the username and password fields and the login POST is sent. 2FA and captcha still need a person.