Skip to content

Commit 397dae9

Browse files
asambstackfrancisf
authored andcommitted
chore: press enter in search scripts for puppeteer single session
1 parent 1310383 commit 397dae9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

duckduckgo_search.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ const expect = require('chai').expect;
2626
await page.goto('https://www.duckduckgo.com');
2727
const element = await page.$('[name="q"]');
2828
await element.click();
29-
await element.type('BrowserStack\n');
29+
await element.type('BrowserStack');
30+
await element.press('Enter');
3031
await page.waitForNavigation();
3132
const title = await page.title('');
3233
console.log(title);

0 commit comments

Comments
 (0)