docs: Fix Getting Started Usage example (#11643)

Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
This commit is contained in:
Jacob Roush 2024-01-08 03:14:06 -06:00 committed by GitHub
parent 35e39bfae9
commit 01a07fda2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

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