diff --git a/examples/cross-browser.js b/examples/cross-browser.js index f709abf5bbe..72500f34faa 100644 --- a/examples/cross-browser.js +++ b/examples/cross-browser.js @@ -34,7 +34,7 @@ const firefoxOptions = { await page.goto('https://news.ycombinator.com/'); // Extract articles from the page. - const resultsSelector = '.storylink'; + const resultsSelector = '.titlelink'; const links = await page.evaluate((resultsSelector) => { const anchors = Array.from(document.querySelectorAll(resultsSelector)); return anchors.map((anchor) => {