💣
This commit is contained in:
parent
f8057a2c8a
commit
035436e284
|
|
@ -104,47 +104,22 @@ await page.Keyboard.PressAsync("Shift+A");
|
||||||
An example to trigger select-all with the keyboard
|
An example to trigger select-all with the keyboard
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// on Windows and Linux
|
|
||||||
await page.keyboard.press('Control+A');
|
|
||||||
// on macOS
|
|
||||||
await page.keyboard.press('Meta+A');
|
|
||||||
// cross-platform
|
|
||||||
await page.keyboard.press('ControlOrMeta+A');
|
await page.keyboard.press('ControlOrMeta+A');
|
||||||
```
|
```
|
||||||
|
|
||||||
```java
|
```java
|
||||||
// on Windows and Linux
|
|
||||||
page.keyboard().press("Control+A");
|
|
||||||
// on macOS
|
|
||||||
page.keyboard().press("Meta+A");
|
|
||||||
// cross-platform
|
|
||||||
page.keyboard().press("ControlOrMeta+A");
|
page.keyboard().press("ControlOrMeta+A");
|
||||||
```
|
```
|
||||||
|
|
||||||
```python async
|
```python async
|
||||||
# on windows and linux
|
|
||||||
await page.keyboard.press("Control+A")
|
|
||||||
# on mac_os
|
|
||||||
await page.keyboard.press("Meta+A")
|
|
||||||
# cross-platform
|
|
||||||
await page.keyboard.press("ControlOrMeta+A")
|
await page.keyboard.press("ControlOrMeta+A")
|
||||||
```
|
```
|
||||||
|
|
||||||
```python sync
|
```python sync
|
||||||
# on windows and linux
|
|
||||||
page.keyboard.press("Control+A")
|
|
||||||
# on mac_os
|
|
||||||
page.keyboard.press("Meta+A")
|
|
||||||
# cross-platform
|
|
||||||
page.keyboard.press("ControlOrMeta+A")
|
page.keyboard.press("ControlOrMeta+A")
|
||||||
```
|
```
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// on Windows and Linux
|
|
||||||
await page.Keyboard.PressAsync("Control+A");
|
|
||||||
// on macOS
|
|
||||||
await page.Keyboard.PressAsync("Meta+A");
|
|
||||||
// cross-platform
|
|
||||||
await page.Keyboard.PressAsync("ControlOrMeta+A");
|
await page.Keyboard.PressAsync("ControlOrMeta+A");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue