1. Rent a Mac for the test
Choose an available Apple-silicon Mac in the market. A day suits a short compatibility check. For work that spans several days, compare the terms before you order. The renter quickstart covers funding your balance, testing the connection and confirming the lease.
2. Open the desktop and an SSH session
On Windows or Linux, get the NVTO Connect command-line client from Download and verify it against SHA256SUMS. Sign in through your browser, list your leases and open the connection. Replace <lease-id> with the ID of your lease.
$ nvto-connect login
$ nvto-connect leases
$ nvto-connect open <lease-id>Leave open running. Point a VNC viewer at 127.0.0.1:15900 and enter the remote-desktop password Connect printed; the machine is already logged in as renter. For a shell, use ssh nvto-5b0c1f6e in a second terminal, replacing 5b0c1f6e with the first eight characters of your lease ID. See Connecting for port settings and troubleshooting.
3. Inspect the page in Safari
In the remote desktop, open Safari and load the page you want to test. Reproduce the issue there. To inspect it, open Safari › Settings › Advanced and enable Show features for web developers.
With the page open, choose Develop › Show Web Inspector. Use the Elements and Console tabs to inspect the page's HTML and styles and check JavaScript errors.
4. Open a site served from your computer
If your development server is running on 127.0.0.1:3000 on your computer, use SSH reverse port forwarding to give Safari a port on the rented Mac. Keep NVTO Connect running and start this in another local terminal, using your lease's SSH name.
$ ssh -N -o ExitOnForwardFailure=yes -R 8080:127.0.0.1:3000 nvto-5b0c1f6eIn Safari on the rented Mac, open http://127.0.0.1:8080. Port 8080 listens on the Mac's loopback interface by default and carries requests to port 3000 on your computer. Leave the SSH command running while you test. Serve only the project and test data you are willing to expose to the Mac's owner.
5. Run WebDriver tests over SSH
Safari automation runs in the renter desktop session, which the machine logs in by itself; leave it logged in. The renter account is an administrator inside the virtual machine. In an SSH shell on the Mac, run safaridriver --enable to authorize Safari automation. If macOS requires elevation, run sudo safaridriver --enable.
Run your WebDriver tests from the SSH shell on the Mac. If your test runner expects an existing driver, run safaridriver -p 4444 in a separate SSH shell on the Mac and point the runner at http://127.0.0.1:4444 there. The driver accepts connections only from localhost. Tests can use the same forwarded development URL as a manual Safari session.
What the test covers
You are testing the desktop Safari version shipped with the machine's macOS installation. Record the version from Safari › About Safari when you file a bug. Run separate checks in the other browsers you support.
The owner can reach the virtual machine while it runs. Keep production credentials and confidential data off it. Copy out any test results you need before the lease ends, when the virtual machine is deleted. See the security model.