How do you send a POST request in Puppeteer?

Getting the “order” right can be a bit of a challenge. Documentation doesn’t have that many examples… there are some juicy items in the repository in the example folder that you should definitely take a look at. https://github.com/GoogleChrome/puppeteer/tree/main/examples Here is the example; place the following into an async block: // Create browser instance, and give … Read more

Apps, Extensions and scripts cannot be added from this website

Instead of opening the file, you have to: extract it (crx are zip files), then visit chrome://extensions, enable developer mode, and load unpacked extension. The reason for this is: lots of people try to abuse chrome apps/extensions to install nasty applications to your browser. So Chrome tries to make it impossible to automatically side-load these … Read more

window.innerWidth in Chrome’s device mode

window.innerWidth and innerHeight return the dimensions of the visual viewport. In desktop browsers, this is generally the browser’s window dimensions. On mobile the situation is a bit more complicated because of pinch zoom. When you load a page without a <meta name=”viewport”> tag, a default layout width is used (e.g. Chrome uses 980px). When the … Read more

Visual Studio Code debugger with Chrome refused to connect to localhost

If anyone else is having this issue, I solved it by: 1)installing the ritwickdey/vscode-live-server available here: vscode-live-server link 2) restarting vscode 3) clicking the Go Live button at the bottom of the screen 4) getting the server address from the resulting Chrome window (ex: http://localhost:5500/) 5) changing the .vscode/launch.json file to include that server address: … Read more

Back button of Google Chrome after clicking a hyperlink whose target is on the same PDF document

AFAIK there is no way to do it with the standard Chrome PDF Viewer. Take a look at their support page https://support.google.com/chrome/answer/1060734. You could try requesting this feature but keep in mind that the PDF viewer is part of Chrome, not Chromium.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)