Created
February 22, 2025 16:35
-
-
Save zengxinhui/21417a4eba3fa75a7e146e9b01739c1c to your computer and use it in GitHub Desktop.
click a button repeatedly
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
function clickButton() { | |
const button = document.querySelector('.oui-savant__Panel--Footer .oui-button-primary') | |
if (button) { | |
button.click(); | |
console.log('Button clicked successfully at ' + new Date().toLocaleTimeString()); | |
} else { | |
console.log('Button not found - check if .divclass .buttonclass exists'); | |
} | |
} | |
const intervalId = setInterval(clickButton, 15000); | |
clickButton(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment