Missing await

This commit is contained in:
TheNetsky
2023-11-04 16:24:25 +01:00
parent 3b15fe19a7
commit 1d6167aeca

View File

@@ -115,7 +115,7 @@ export class Workers {
await page.waitForSelector(selector, { timeout: 10_000 }) await page.waitForSelector(selector, { timeout: 10_000 })
// Click element, it will be opened in a new tab // Click element, it will be opened in a new tab
page.click(selector) await page.click(selector)
// Select the new activity page // Select the new activity page
const activityPage = await this.bot.browser.utils.getLatestTab(page) const activityPage = await this.bot.browser.utils.getLatestTab(page)