Skip to content

Commit 11ffa5d

Browse files
authored
Update main_test.js
1 parent e6d2ca1 commit 11ffa5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lab4/main_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ const puppeteer = require('puppeteer');
1717
await page.type('#docsearch-input', 'Experimental WebDriver BiDi support', { delay: 150 });
1818

1919
// Wait for search result and click on the first result
20-
await page.waitForSelector('.DocSearch-Hit-content');
20+
await page.waitForSelector('.DocSearch-Hit-content', { timeout: 60000 });
2121
await page.click('.DocSearch-Hit-content');
2222

2323
// Locate the title
24-
let textSelector = await page.waitForSelector('h1');
24+
let textSelector = await page.waitForSelector('h1', { timeout: 60000 });
2525
let title = await textSelector.evaluate(element => element.textContent);
2626

2727
// Print the title

0 commit comments

Comments
 (0)