Skip to content

Commit

Permalink
redorder wait selector
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Mar 2, 2024
1 parent 91a9bcd commit 7e38ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/browserApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ class PuppeteerApi {
}

async removeElementsAndGetDiv() {
await this.page.waitForSelector('div.persistent-player')
await this.page.$eval('button[data-a-target="consent-banner-accept"]', el => el.click()).catch(() => {})
await this.page.$eval('#twilight-sticky-footer-root', el => el.remove()).catch(() => {})
await this.page.$eval('button[data-a-target="content-classification-gate-overlay-start-watching-button"]', el => el.click()).catch(() => {})
await this.page.$eval('button[data-a-target="right-column__toggle-collapse-btn"]', el => el.click()).catch(() => {})
await this.page.waitForSelector('div.persistent-player')
await this.page.$eval('.video-player__default-player', el => el.remove())
}

Expand Down

0 comments on commit 7e38ddc

Please sign in to comment.