I would like to launch a Google Chrome browser with language Spanish es using Puppeteer.  I've tried puppeteer.launch(args:['--lang=es',...],...) but it didn't work.  I've tried passing the environment variable LANGUAGE=es mocha p...
I periodically run into scenarios where I need to use Spatie's Browsershot to capture extremely tall web pages. However, when I do this, the resultant screenshot repeats every 16,384 pixels. (You can see an example of the repetition here: https:/...
I'm running this command  chrome --headless --disable-gpu --enable-logging --repl https://www.chromestatus.com/   then I get a cmd filled with the error  {"result":{"type":"undefined"}}   my os is windows 8.1 chrome versio...
I am trying to print a page with several nvd3 charts to pdf using puppeteer. When using the printing function via the Chrome browser I obtain the following decent output (don't mind the blue borders):    When I try to visit the same page using ch...
I want to take a screenshot of a page, after I inject some data into it:  (async () => {   const browser = await puppeteer.launch({dumpio: true});   const page = await browser.newPage();    await page.evaluate((data) => {     console.log("-...
I am trying to use the export keyword in my test.js file. The test.js file is pretty simple.  const foo = Math.PI; export { foo };   And I am using karma to do the testing. My Chrome version is greater than 61 as seen in the log below. The export syn...
When taking screenshots with Puppeteer I notice that some aren't taken because a script on the website takes to long to load which triggers the goTo timeout (after 60 secs). I can't increase the timeout any more and even if I did some scripts...
For example the document.querySelectorAll works with CSS selectors, but how can I use XPath expressions instead?...
I am trying to generate pdfs from my website pages.  To do so, I have an express server that runs Puppeteer and does a couple thing: - Take the width of the browser when the page was viewed by the user. - Resize the chrome headless browser. - Calcula...
I am using puppeteer to run headless chrome. Once I login I want to keep the session cookies for future use. Is there a way to save and load session cookies in puppeteer?  Looking for something like:  (async () => {     console.log('start ->...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.