Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function performActions() {
- // Find the input field with data-qid="lastName" and click on it
- const lastNameField = document.querySelector('[data-qid="lastName"]');
- setTimeout(() => {
- lastNameField.click();
- // Find the button with data-qe-id="action-button-payment" and click on it
- const paymentButton = document.querySelector('[data-qe-id="action-button-payment"]');
- setTimeout(() => {
- paymentButton.click();
- // Wait for 1000 milliseconds (1 second)
- setTimeout(() => {
- // Find the button with data-qe-id="action-button-academic" and click on it
- const academicButton = document.querySelector('[data-qe-id="action-button-academic"]');
- academicButton.click();
- // Wait for 5 seconds (5000 milliseconds) after clicking the last button
- setTimeout(performActions, 5000);
- }, 1000);
- }, 500);
- }, 500);
- }
- // Start the loop
- performActions();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement