Skip to content

Instantly share code, notes, and snippets.

@avipars
Created October 14, 2021 13:06
Show Gist options
  • Save avipars/7e09a4a273d2764b65053ac09ba2f894 to your computer and use it in GitHub Desktop.
Save avipars/7e09a4a273d2764b65053ac09ba2f894 to your computer and use it in GitHub Desktop.
USEmbassyIsrael Script
javascript: function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
await sleep(3000);
document.querySelector('input[value="Make Appointment!"]').click();
await sleep(3000);
document.querySelector('input[value="AA"]').click();
await sleep(3000);
document.querySelector('input[name="chkbox01"]').click();
await sleep(3000);
document.querySelector('input[value="Submit"]').click();
await sleep(3000);
document.querySelector('select[value="12"]').click();
await sleep(3000);
document.getElementById("Select1").selectedIndex = 11; //december
await sleep(3000);
document.getElementById("Select2").selectedIndex = 1; // 2022
await sleep(3000);
document.getElementById("Select1").selectedIndex = 0; //jan
await sleep(3000);
@avipars
Copy link
Author

avipars commented Oct 26, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment