Skip to content

Commit

Permalink
close panel when already checked
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed May 20, 2024
1 parent d5c7ac8 commit a7cbebe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/browserApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class PuppeteerApi {
if (inputs && inputs.length > 1 && !inputs[1].checked) {
const inputId = inputs[1].id
await this.page.click('#' + inputId).catch(() => {})
} else {
await this.page.$eval('button[data-a-target="player-settings-button"]', el => el.click()).catch(() => {})
}

await this.page.$eval('.video-player__default-player', el => el.style.display = "none")
Expand Down

0 comments on commit a7cbebe

Please sign in to comment.