From f7c59223ae43960e0020480bd6c18ce294b9f633 Mon Sep 17 00:00:00 2001 From: Maksim Sadym <69349599+sadym-chromium@users.noreply.github.com> Date: Wed, 16 Feb 2022 08:51:20 +0100 Subject: [PATCH] docs: update example to align with the website (#7788) Update example to align with the website. `news.ycombinator.com` uses class `.titlelink`. --- examples/cross-browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {