Skip to content

Instantly share code, notes, and snippets.

View NothingEverHappens's full-sized avatar

NothingEverHappens

View GitHub Profile
async function delay(ms) {
return new Promise(res => {
setTimeout(res, ms)
})
}
async function findElement(selector, attemps = 10) {
if (!attemps) {
throw Error(`not found ${selector}`);
}