Skip to content

Commit

Permalink
give more time to do steps
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed May 22, 2024
1 parent 219b757 commit 1e887fa
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 @@ -67,7 +67,9 @@ class PuppeteerApi {
}
await this.page.$eval('.video-player__default-player button[data-a-target="player-play-pause-button"][data-a-player-state="playing"]', el => el.click()).catch(() => {})
await this.page.$eval('button[data-a-target="player-settings-button"]', el => el.click()).catch(() => {})
await new Promise(r => setTimeout(r, 500))
await this.page.$eval('button[data-a-target="player-settings-menu-item-quality"]', el => el.click()).catch(() => {})
await new Promise(r => setTimeout(r, 500))
const inputs = await this.page.$$eval('input[name="player-settings-submenu-quality-option"]', elements => {
return elements.map(e => {
return { id: e.id, checked: e.checked }}
Expand Down

0 comments on commit 1e887fa

Please sign in to comment.