Skip to content

auto_fill_rules not working in outlook.office.com stay signed in page (with workaround) #196

Description

@mluis7

auto_fill_rules are not applied to outlook.office.com stay signed in page.

[[auto_fill_rules."https://*"]]
selector = "input[id=KmsiCheckboxField]"
action = "click"

[[auto_fill_rules."https://*"]]
selector = "input[id=idSIButton9]"
action = "click"

Workaround

Add this code to
~/.local/lib/python3.12/site-packages/openconnect_sso/browser/user.js

window.onload = function() {
        setTimeout(function () {
                var elem = document.querySelector('input[id=KmsiCheckboxField]'); if (elem) { elem.dispatchEvent(new Event("focus")); elem.click(); }
                var elem1 = document.querySelector('input[id=idSIButton9]'); if (elem1) { elem1.dispatchEvent(new Event("focus")); elem1.click(); }
                /*if (elem1){
                        alert(elem1);
                } else{
                        alert('NOT FOUND');
                }*/
            }, 1000);
};

Might need timeout adjustment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions