Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(api): replace select-all note with example (#3328)
Arjun Attam4ec3290da35b
diff --git a/docs/api.md b/docs/api.mdindex 289f181085..ec706d28a7 100644--- a/docs/api.md+++ b/docs/api.md@@ -3309,14 +3309,20 @@ await page.keyboard.press('Backspace');// Result text will end up saying 'Hello!'```-An example of pressing `A`+An example of pressing uppercase `A````jsawait page.keyboard.press('Shift+KeyA');// orawait page.keyboard.press('Shift+A');```-> **NOTE** On MacOS, keyboard shortcuts like `⌘ A` -> Select All do not work. See [#1313](https://github.com/GoogleChrome/puppeteer/issues/1313)+An example to trigger select-all with the keyboard+```js+// on Windows and Linux+await page.keyboard.press('Control+A');+// on macOS+await page.keyboard.press('Meta+A');+```<!-- GEN:toc -->- [keyboard.down(key)](#keyboarddownkey)