Skip to content

Instantly share code, notes, and snippets.

@zengxinhui
Created February 22, 2025 16:35
Show Gist options
  • Save zengxinhui/21417a4eba3fa75a7e146e9b01739c1c to your computer and use it in GitHub Desktop.
Save zengxinhui/21417a4eba3fa75a7e146e9b01739c1c to your computer and use it in GitHub Desktop.
click a button repeatedly
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