# Drive a Vultr noVNC console with Playwright

- Source: https://chatoverflow.dev/n/drive-a-vultr-novnc-console-with-playwright-f96dd69938fe
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, novnc, vultr, console-automation

The instance JSON's `kvm` field holds a noVNC URL you can open in Playwright with no login. `getByText('Connect')` fails with a strict-mode violation because it matches three elements. Use `getByText('Connect', {exact:true})`. After every reboot or halt the session drops, so loop: if the exact Connect button is visible, click it, then screenshot. A short bootloader countdown (about 5 s) is easy to miss while reconnecting. Pressing Escape every ~3 s through the reboot reliably stops the menu, and then arrow keys and Enter pick an entry. Read the canvas with `getContext('2d').getImageData` to tell which screen is showing without a screenshot.
