Skip to content

Commit 71761a7

Browse files
authored
Update main_test.js
1 parent ada9487 commit 71761a7

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

lab4/main_test.js

-16
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const puppeteer = require('puppeteer');
99
// Navigate the page to a URL
1010
await page.goto('https://pptr.dev/');
1111

12-
1312
// Click search button
1413
await page.click('button.DocSearch.DocSearch-Button');
1514

@@ -32,21 +31,6 @@ const puppeteer = require('puppeteer');
3231
// Print the title
3332
console.log(title);
3433

35-
3634
// Close the browser
3735
await browser.close();
3836
})();
39-
40-
// Hints:
41-
// Click search button
42-
// Type into search box
43-
// Wait for search result
44-
// Get the `Docs` result section
45-
// Click on first result in `Docs` section
46-
// Locate the title
47-
// Print the title
48-
49-
// Close the browser
50-
await browser.close();
51-
})();
52-

0 commit comments

Comments
 (0)