Watch it run
The test
press-keys.test.mjs
How it works
pressKeys()presses an array of keys together.['ctrl', 't']opens a new tab, and['ctrl', 'shift', 'i']opens DevTools.- After each shortcut,
find()with a shorttimeoutwaits for what the shortcut should reveal. This confirms the shortcut worked. type()types into the focused element, here the new tabβs address bar.
Run it
The test is in the TestDriver SDK repository. Clone it, install dependencies, and run the file:TD_API_KEY. Create a key at console.testdriver.ai/team/api-keys. Then set it in your environment or a .env file.

