diff --git a/package.json b/package.json index 28f63a5..b1e9433 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "splinterlands-bot", - "version": "1.8.3", + "version": "1.8.4", "description": "", "main": "main.js", "engines": { diff --git a/splinterlandsPage.js b/splinterlandsPage.js index 873d794..bb888ca 100644 --- a/splinterlandsPage.js +++ b/splinterlandsPage.js @@ -9,7 +9,7 @@ async function login(page, account, password) { .then(() => page.type('#password', password)) // .then(() => page.waitForSelector('#login_dialog_v2 > div > div > div.modal-body > div > div > form > div > div.col-sm-offset-1 > button', { visible: true }).then(() => page.click('#login_dialog_v2 > div > div > div.modal-body > div > div > form > div > div.col-sm-offset-1 > button'))) - .then(() => page.keyboard.press('Enter')) + .then(() => page.click("#loginBtn")) .then(() => page.waitForTimeout(5000)) .then(() => page.reload()) .then(() => page.waitForTimeout(5000))