0

I have this function that is clicking a button from my chrome page:

var button = document.evaluate("//button/div[contains(text(), 'Break')]/..", document).iterateNext().click();

How can I tell Chrome Console to trigger this button at 13:00 PM for example ?

i Bands
  • 31
  • 5
  • 1
    Does this answer your question? https://stackoverflow.com/questions/4455282/call-a-javascript-function-at-a-specific-time-of-day – feedy Jan 22 '20 at 11:38
  • I have tried this: but it doesn't working: `var eta_ms = new Date(2020, 1, 22, 13, 45).getTime() - Date.now(); var timeout = setTimeout(function(){var button = document.evaluate("//button/div[contains(text(), 'Casework')]/..", document).iterateNext().click();}, eta_ms);` – i Bands Jan 22 '20 at 11:45

0 Answers0