diff --git a/examples/search.js b/examples/search.js index d1ad58a4..df0abc21 100644 --- a/examples/search.js +++ b/examples/search.js @@ -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.