We're a place where coders share, stay up-to-date and grow their careers.
Since Big Sur, it inserts the password into the "Account Name" field (probably because the focus is on that field by default). Any idea how to resolve that?
you can add tab to the enterPassword function after sleep 1, should resolve from printing password in username field.
osascript -e "tell application \"System Events\" to keystroke tab"
Thank you, works like a charm!
Since Big Sur, it inserts the password into the "Account Name" field (probably because the focus is on that field by default). Any idea how to resolve that?
you can add tab to the enterPassword function after sleep 1, should resolve from printing password in username field.
osascript -e "tell application \"System Events\" to keystroke tab"
Thank you, works like a charm!