docs: anchor selector on search example (#9854)

Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
This commit is contained in:
Jefferson Pereira 2023-03-15 06:10:07 -07:00 committed by GitHub
parent 8c1b16dce0
commit 7b8f80ade8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ const puppeteer = require('puppeteer');
await page.click(allResultsSelector);
// Wait for the results page to load and display the results.
const resultsSelector = '.gsc-results .gs-title';
const resultsSelector = '.gsc-table-result a.gs-title[href]';
await page.waitForSelector(resultsSelector);
// Extract the results from the page.