Documentation

    Amazon Web Services

    Microsoft Azure

    RapidAPI

    APILayer

Last Update: 2024-09-13

Puppeteer on Windows


Table of Content


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

We are currently experiencing a delay in provisioning the instance. It may take up to 20 minutes for the instance to become ready for RDP connections and the initial configuration after the first login.

Launch Puppeteer on Windows

Navigate to our listing page on the AWS Marketplace and click 'Continue to Subscribe'.

On the subsequent page, review and accept our terms by selecting 'Accept Terms'.

Once the subscription process is complete, select 'Continue to Configuration'.

Choose the region where you wish to deploy the virtual machine, then click 'Continue to Launch'.

On the final page, select the instance type you wish to use (the recommended instance type is pre-selected) and review the other launch options. Then, click 'Launch'.

After launching, you can view your instance in the EC2 Management Console.

Connect to your instance via RDP


Get the Windows password of your instance in the EC2 Management Console (make sure to be in the correct AWS region) by selecting your instance -> Actions -> Security -> Get Windows Password. It can take up to 30 minutes until the Windows password gets available in the AWS console.

Browse for your the key file you specified when you launched the instance.

Click on 'Decrypt Password' and save the password. The user name for the virtual machine is 'Administrator'.

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

When prompted, enter 'Administrator' as the username and the password you obtained from the EC2 console (refer to the step above).

Run our sample code and develop your own scripts


Connect to the instance via RDP and log in as the 'Administrator' user.

Start Visual Studio Code, open the 'Puppeteer' folder from the desktop, and select the 'script.js' file.

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

Note: The first execution after startup is typically very slow, especially on instances 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.

By navigating to the 'Puppeteer' folder on the desktop, you can view the screenshots that have been taken.

Troubleshooting

How to Utilize the Clipboard for Copy & Paste Operations

Most RDP and VNC clients are designed to integrate with your system's clipboard, enabling straightforward copy (Ctrl+C) and paste (Ctrl+V) functionality. This feature allows you to copy text or files on one end and paste them on the other without any complex procedures.

Using "Remote Paste" Feature: Some clients offer an enhanced feature known as "remote paste." This option can usually be found within the client's settings or preferences menu. When enabled, it optimizes the process for copying content from your local system to the virtual machine, ensuring smoother and potentially faster transfers.

Steps for Effective Copy & Paste:

For Text:

  1. Select the text you wish to copy on your local machine.
  2. Press Ctrl+C to copy the text to the clipboard.
  3. Switch to your RDP or VNC client window where the virtual machine is running.
  4. Press Ctrl+V to paste the text within the virtual machine environment.

For Files:

  1. Highlight the file(s) on your local system that you want to transfer.
  2. Use Ctrl+C to copy the selected file(s).
  3. Move to the virtual machine via your RDP or VNC client.
  4. Press Ctrl+V to paste the file(s) into the desired location on the virtual machine.

Troubleshooting Tips:

Clipboard Not Working? If you encounter issues with the clipboard functionality, first ensure that clipboard sharing is enabled in your RDP/VNC client's settings. This setting is crucial for copy-paste operations to work across your local system and the virtual machine.

File Transfer Fails? Ensure that the client and virtual machine both support file transfer via clipboard. Some setups may require additional configuration or support only text copy-paste by default.

Performance Issues: For large files or slow connections, consider using dedicated file transfer protocols or services instead of clipboard operations for a more reliable and efficient transfer process.

How can I cancel my subscription?

To cancel your subscription, follow these steps:

  1. Go to the AWS Marketplace Console at https://aws.amazon.com/marketplace/library. Ensure that you are logged into the account that is subscribed to the product you want to cancel.
  2. Find the product you want to cancel and click on 'Manage.'
  3. Click on 'Actions' and then select 'Cancel subscription.'

For more detailed instructions, visit the AWS Marketplace Buyer Guide at https://docs.aws.amazon.com/marketplace/latest/buyerguide/cancel-subscription.html.