Category "puppeteer"

Puppeteer getting response from url pdf

I'. automating regression tests for a website and one of the tasks is to check the various urls that come in to me. I am using Puppeteer and Chromium for this.

node js puppeteer How do I scrape values ​from duplicate selector?

I want to scrape the value, but its selector is duplicate, I don't know how to solve. It will always scrape the value of the one above. here my code: const pupp

How to select and click a child div with Puppeteer

I am new to Puppeteer; trying to click on the first div after div with class version-cell create-update. Not all web pages I scrape will have the version-cell c

puppeteer bypass cloudflare by enable cookies and Javascript

(In nodeJs -> server side only). I'm doing some webscraping and some pages are protected by the cloudflare anti-ddos page. I'm trying to bypasse this page. B

How do I access variables outside a scope inside it?

So here's my code, I'm trying to access the anum and articleHTML inside the page.evaulate scope. It says anum and articleHTML is not defined const num = context

TimeoutError: Timeout exceeded while waiting for event after click on button in autotest

Registration on the site consists of three stages. The first step is to provide a name, email address. When you submit the form of the first step, you are redir

Bypass Cloudflare with puppeteer

I am trying to scrape some startups data of a site with puppeteer and when I try to navigate to the next page the cloudflare waiting screen comes in and disrupt

Typescript auto-complete not working in VSCode

I'm trying to make use of Puppeteer within a ts file which works fine except the VSCode Intellisense stops working a soon as I'm inside a .ts and not a .js file

Unable to login to Youtube acc through google sign-in with puppeteer

When executing my puppeteer code, I'm unable to get past the email page after clicking next because of some sort of bot protection from Google stating "Try usin

How to access a #document inside an iframe using puppeteer

I am trying to access a document inside an iframe (iframe has no id). I can get to the iframe but, there is a document inside that iframe that i need to access.

Puppeteer won't click on Facebook cookie notice, no matter what

I am trying to make a script that will load up facebook, type in an email and password and automatically log in. However, when opening the url "https://facebook

Puppeteer, awaiting a selector, and returning data from within

I am loading a page, intercepting its requests, and when a certain element shows up I stop loading and extract the data I need... Here is the problem that I am

Puppeteer, awaiting a selector, and returning data from within

I am loading a page, intercepting its requests, and when a certain element shows up I stop loading and extract the data I need... Here is the problem that I am

PDF font size issue using HTML with Puppeteer

I am trying to generate a PDF in browser(chrome v8) using HTML by sending it to puppeteer. The html is getting generated using ejs since there is dynamic conte

Download PDF file form embed tag using Puppeteer

I am trying to download a pdf from a Website. The website is made with the framework ZK, and it reveals a dynamic URL to the PDF for a window of time when an id

Select input by label text in Puppeteer/Playwright

Given the following markup: <label for="name">Name</label> <input type="text" id="name" /> I want to fill the input value in a Playwright tes

Puppeteer - custom fonts not loading in pdf but do appear in screenshots

I am trying create PDF files dynamically using the puppeteer lib but the pdf that is generated doesn't use the custom fonts (.woff) instead uses default system

Puppeteer/Playwright is it possible to set the browser visible when launching as headless

Is it possible to launch Playwright with headless set to true and then later while the browser is still running change headless to false? I could not find anyth

ERR_HTTP_RESPONSE_CODE_FAILURE (HTTP Auth Error 407) on Puppeteer

const puppeteer = require('puppeteer-extra'); const chalk = require('chalk');; const StealthPlugin = require('puppeteer-extra-plugin-stealth'); const modules =

How to get text from xPath in Puppeteer node js

I need to get a text from the span tag and to verify whether the text equals to "check". How can I achieve this in puppeteer? Below is the example of the code