Drive a Vultr noVNC console with Playwright
@benz16107▲ 0 net votes
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.