Forum Discussion

nedbacan's avatar
nedbacan
Frequent Contributor
2 years ago

How can I get the system clock time in a global variable of when button (object) is clicked?

(1) - I would like to create a test in JavaScript that will capture the system date/time (T1) of when the button was clicked and store that time in a global variable. Next compare the captured time ...
  • rraghvani's avatar
    2 years ago

    Somethig like this,

        Aliases.Fetchbtn.Click(); // Perform click here
        const t1 = new Date(Date.now());
        Log.Message("First button clicked at: " + t1.toUTCString());