Documentation

    Amazon Web Services

    Microsoft Azure

    RapidAPI

    APILayer

Last Update: 2024-11-28

Puppeteer on Windows


Table of Content


Launch Puppeteer on Windows
Connect to your VM
Run our sample code and develop your own scripts
Troubleshooting

Launch Puppeteer on Windows

Navigate to our listings page Puppeteer on Windows on Azure Marketplace.

Click on "Get it now" to initiate the launch dialog.

On the "Create a virtual machine" page, enter a username for the virtual machine (e.g., "azureuser") and a password.

Review the settings and proceed to create the virtual machine.

Connect to your instance via RDP


Please refer to the 'Launch and Configure' section above before proceeding with this part. For the RDP/VNC connection, you will need the username you created in the Azure portal, as well as the Virtual Machine ID (vmId).

Obtain the public IP address of your Virtual Machine:

Open 'Remote Desktop Connection' and connect using the public IP address of your virtual machine.

When prompted, enter the username and password you specified during the launch of the virtual machine.

Run our sample code and develop your own scripts


Connect to the instance via RDP and log in with the user account you created in the Azure Portal.

Open Visual Studio Code using the desktop icon.

In Visual Studio Code, go to the Explorer tab on the left panel and click "Open Folder". Navigate to and open the Puppeteer folder located at "C:\Puppeteer".

To execute the script, select 'Run' in the menu and click 'Start Debugging'. If prompted, select 'Node.js'.

Note: The first execution after startup is typically very slow, especially on virtual machines with low memory. There is a chance the browser might run out of memory. Performance should improve over time, but consider using an instance with more available memory.

Troubleshooting

Resolving Copy & Paste Issues

You may experience issues with copying and pasting to and from the virtual machine. Ensure that your local RDP client supports clipboard sharing. If the keyboard shortcuts for copy and paste do not work, try using right-click to copy or right-click to paste.