diff --git a/README.md b/README.md index 2f87f664314..117cbdd64bd 100644 --- a/README.md +++ b/README.md @@ -156,10 +156,10 @@ import puppeteer from 'puppeteer'; await page.setViewport({width: 1080, height: 1024}); // Type into search box - await page.type('.search-box__input', 'automate beyond recorder'); + await page.type('.devsite-search-field', 'automate beyond recorder'); // Wait and click on first result - const searchResultSelector = '.search-box__link'; + const searchResultSelector = '.devsite-result-item-link'; await page.waitForSelector(searchResultSelector); await page.click(searchResultSelector); diff --git a/docs/index.md b/docs/index.md index 2f87f664314..117cbdd64bd 100644 --- a/docs/index.md +++ b/docs/index.md @@ -156,10 +156,10 @@ import puppeteer from 'puppeteer'; await page.setViewport({width: 1080, height: 1024}); // Type into search box - await page.type('.search-box__input', 'automate beyond recorder'); + await page.type('.devsite-search-field', 'automate beyond recorder'); // Wait and click on first result - const searchResultSelector = '.search-box__link'; + const searchResultSelector = '.devsite-result-item-link'; await page.waitForSelector(searchResultSelector); await page.click(searchResultSelector);