Skip to content

Commit

Permalink
wait for one more second on video entries
Browse files Browse the repository at this point in the history
  • Loading branch information
chapiewsky committed May 13, 2019
1 parent deada8f commit 8dfb3ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/giveaways.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,7 @@ async function enterVideoGiveaway(page) {
}

await page.click(selector);
await page.waitFor(15000);

await page.waitFor(16000);
try {
if (selector === '#youtube-iframe') {
await page.waitForSelector(
Expand All @@ -426,10 +425,10 @@ async function enterVideoGiveaway(page) {
await page.click('#enter-video-button > span > input');
} else if (selector === 'div.amazon-video') {
await page.waitForSelector(
'.amazon-video-continue-button'
'.amazon-video-continue-button > .a-button-inner'
);
await page.click(
'.amazon-video-continue-button'
'.amazon-video-continue-button > .a-button-inner'
);
} else {
await page.waitForSelector('.youtube-continue-button');
Expand Down

0 comments on commit 8dfb3ab

Please sign in to comment.