Advertisement
Guest User

Untitled

a guest
Jun 25th, 2023
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function performActions() {
  2.     // Find the input field with data-qid="lastName" and click on it
  3.     const lastNameField = document.querySelector('[data-qid="lastName"]');
  4.     setTimeout(() => {
  5.         lastNameField.click();
  6.  
  7.         // Find the button with data-qe-id="action-button-payment" and click on it
  8.         const paymentButton = document.querySelector('[data-qe-id="action-button-payment"]');
  9.         setTimeout(() => {
  10.             paymentButton.click();
  11.  
  12.             // Wait for 1000 milliseconds (1 second)
  13.             setTimeout(() => {
  14.                 // Find the button with data-qe-id="action-button-academic" and click on it
  15.                 const academicButton = document.querySelector('[data-qe-id="action-button-academic"]');
  16.                 academicButton.click();
  17.  
  18.                 // Wait for 5 seconds (5000 milliseconds) after clicking the last button
  19.                 setTimeout(performActions, 5000);
  20.             }, 1000);
  21.         }, 500);
  22.     }, 500);
  23. }
  24.  
  25. // Start the loop
  26. performActions();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement