Skip to content

Commit

Permalink
Update main_test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
as10968574 authored Jun 24, 2024
1 parent ada9487 commit 71761a7
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions lab4/main_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const puppeteer = require('puppeteer');
// Navigate the page to a URL
await page.goto('https://pptr.dev/');


// Click search button
await page.click('button.DocSearch.DocSearch-Button');

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


// Close the browser
await browser.close();
})();

// Hints:
// Click search button
// Type into search box
// Wait for search result
// Get the `Docs` result section
// Click on first result in `Docs` section
// Locate the title
// Print the title

// Close the browser
await browser.close();
})();

0 comments on commit 71761a7

Please sign in to comment.