reduce the random wait time
This commit is contained in:
@@ -41,7 +41,7 @@ function delay(delayInms) {
|
||||
}
|
||||
|
||||
function getRandom() {
|
||||
return Math.floor(Math.random() * 5);
|
||||
return Math.floor(Math.random() * 3);
|
||||
}
|
||||
|
||||
function getRandomWaitTime() {
|
||||
@@ -235,9 +235,13 @@ class CommandorPage {
|
||||
})
|
||||
await delay(getRandomWaitTime())
|
||||
if (!this.page.isClosed()) {
|
||||
try {
|
||||
this.page.evaluate(() => {
|
||||
document.getElementsByClassName("btn")[0].click();
|
||||
})
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user