From 92756531301c6918eed6db1c92da00866933fffb Mon Sep 17 00:00:00 2001 From: Thomas Chaplin Date: Mon, 5 Oct 2020 05:48:34 +0100 Subject: [PATCH] docs(examples): update selector for search example (#6471) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates the selector used in some examples as it no longer matched the target page’s DOM. Fixes #6470, fixes #5071. --- examples/search.js | 2 +- experimental/puppeteer-firefox/examples/search.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/search.js b/examples/search.js index abef3889..828d1554 100644 --- a/examples/search.js +++ b/examples/search.js @@ -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'; diff --git a/experimental/puppeteer-firefox/examples/search.js b/experimental/puppeteer-firefox/examples/search.js index 109512c8..6f55e981 100644 --- a/experimental/puppeteer-firefox/examples/search.js +++ b/experimental/puppeteer-firefox/examples/search.js @@ -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';