Created
July 8, 2020 09:09
-
-
Save mavaddat/7993fbd6ffed7f013e1f3ad23b4b093c to your computer and use it in GitHub Desktop.
Reject all pending approval requests in Microsoft Automate web interface.
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
document.querySelectorAll("#content-container > section > landing > div > react-app > div > section > section > section > main > div.ba-DetailsList-container.outerRoot-151 > div.ms-Viewport > div > div > div.ms-DetailsList-contentWrapper.contentWrapper-385 > div > div > div > div > div:nth-child(1) > div > div > div > div > div > div > div:nth-child(2) > div > button > span > i").forEach((e) => { | |
setTimeout(() => { | |
e.click() | |
}, 300); | |
setTimeout(() => { | |
document.querySelector("body > div.ms-Layer.ms-Layer--fixed > div > div > div > div.ms-Panel-main > div.ms-Panel-contentInner > div.ms-Panel-footer > div > div > button.ms-Button.ms-Button--primary.ba-Panel-footerButton.ba-Panel-footer-primaryButton > span").click(); | |
}, 2300); | |
setTimeout(() => { | |
document.querySelector("body > div:nth-child(33) > div > div > div > div.ms-Panel-main > div.ms-Panel-contentInner > div.ms-Panel-footer > div > div > button").click(); | |
}, 300) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment