Skip to content

Commit

Permalink
added navigate to after claiming daily box bug
Browse files Browse the repository at this point in the history
  • Loading branch information
alfficcadenti committed Jan 8, 2022
1 parent 6d1fc27 commit a3be8ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ async function startBotPlayMatch(page, browser) {
if (isClaimDailyQuestMode === true) {
try {
await page.waitForSelector('#quest_claim_btn', { timeout: 5000 })
.then(button => button.click());
.then(button => button.click())
.then(()=>page.goto('https://splinterlands.com/?p=battle_history'));
} catch (e) {
console.info('no quest reward to be claimed waiting for the battle...')
}
Expand Down

0 comments on commit a3be8ee

Please sign in to comment.