Skip to content

Instantly share code, notes, and snippets.

@JoshuaKGoldberg
Created September 15, 2023 12:44
Show Gist options
  • Save JoshuaKGoldberg/089385959d45d7747fb018334d67e7ba to your computer and use it in GitHub Desktop.
Save JoshuaKGoldberg/089385959d45d7747fb018334d67e7ba to your computer and use it in GitHub Desktop.
Accept first Tidelift
async function goThroughFlow() {
const waitFor = (time) => new Promise((resolve) => setTimeout(resolve, time));
const container = document.getElementById("container");
container.click();
await waitFor(1000);
const choice = document.querySelector(`[name=discloure_choice]`);
choice.scrollIntoView();
choice.click();
await waitFor(500);
document.querySelector(".drawer-card-foot button").click();
}
await goThroughFlow();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment