We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6d2ca1 commit 11ffa5dCopy full SHA for 11ffa5d
lab4/main_test.js
@@ -17,11 +17,11 @@ const puppeteer = require('puppeteer');
17
await page.type('#docsearch-input', 'Experimental WebDriver BiDi support', { delay: 150 });
18
19
// Wait for search result and click on the first result
20
- await page.waitForSelector('.DocSearch-Hit-content');
+ await page.waitForSelector('.DocSearch-Hit-content', { timeout: 60000 });
21
await page.click('.DocSearch-Hit-content');
22
23
// Locate the title
24
- let textSelector = await page.waitForSelector('h1');
+ let textSelector = await page.waitForSelector('h1', { timeout: 60000 });
25
let title = await textSelector.evaluate(element => element.textContent);
26
27
// Print the title
0 commit comments