Skip to content

Commit

Permalink
docs(examples): update selector for search example (puppeteer#6471)
Browse files Browse the repository at this point in the history
This commit updates the selector used in some examples as it no longer matched the target page’s DOM.

Fixes puppeteer#6470, fixes puppeteer#5071.
  • Loading branch information
thomaschaplin authored Oct 5, 2020
1 parent 49f25e2 commit 9275653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const puppeteer = require('puppeteer');
await page.goto('https://developers.google.com/web/');

// Type into search box.
await page.type('#searchbox input', 'Headless Chrome');
await page.type('.devsite-searchbox input', 'Headless Chrome');

// Wait for suggest overlay to appear and click "show all results".
const allResultsSelector = '.devsite-suggest-all-results';
Expand Down
2 changes: 1 addition & 1 deletion experimental/puppeteer-firefox/examples/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const puppeteer = require('puppeteer-firefox');
await page.goto('https://developers.google.com/web/');

// Type into search box.
await page.type('#searchbox input', 'Headless Chrome');
await page.type('.devsite-searchbox input', 'Headless Chrome');

// Wait for suggest overlay to appear and click "show all results".
const allResultsSelector = '.devsite-suggest-all-results';
Expand Down

0 comments on commit 9275653

Please sign in to comment.