set to random store and try catch
This commit is contained in:
@@ -229,7 +229,9 @@ class CommandorPage {
|
||||
try {
|
||||
if (!this.page.isClosed()) {
|
||||
this.page.evaluate(() => {
|
||||
document.getElementsByClassName("btn")[0].focus();
|
||||
let element = document.getElementsByClassName("btn")[0];
|
||||
if (typeof element !== 'undefined')
|
||||
document.getElementsByClassName("btn")[0].focus();
|
||||
})
|
||||
await delay(getRandomWaitTime())
|
||||
if (!this.page.isClosed()) {
|
||||
|
||||
Reference in New Issue
Block a user