Rayrun
← Back to Discord Forum

Click on button on wsj

Hi guys, I want to agree a cookies button on wsj. My code looks like this :

await page.goto('https://www.wsj.com/articles/global-stocks-markets-dow-news-07-31-2023-1c675749'); await page.on('dialog', dialog => dialog.accept()); await page.click('button[title="YES, I AGREE"]');

I tried different aproaches, but none of them worked.

Anyone could help me? Thanks a lot, David

This thread is trying to answer question "How can I successfully agree to a cookies button on the Wall Street Journal website using my code?"

0 replies

Related Discord Threads

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.