docs(examples): update selector for search example (#6471)

This commit updates the selector used in some examples as it no longer matched the target page’s DOM.

Fixes #6470, fixes #5071.
This commit is contained in:
Thomas Chaplin 2020-10-05 05:48:34 +01:00 committed by GitHub
parent 49f25e2412
commit 9275653130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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';

View File

@ -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';