Skip to content

Commit

Permalink
chore: remove emulation from touchscreen tests (#11003)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Oct 6, 2023
1 parent 12d7d72 commit 9c0c299
Show file tree
Hide file tree
Showing 17 changed files with 1,945 additions and 1,376 deletions.
2 changes: 1 addition & 1 deletion docs/api/puppeteer.elementhandle.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The constructor for this class is marked as internal. Third-party code should no
| [isIntersectingViewport(this, options)](./puppeteer.elementhandle.isintersectingviewport.md) | | Resolves to true if the element is visible in the current viewport. If an element is an SVG, we check if the svg owner element is in the viewport instead. See https://crbug.com/963246. |
| [isVisible()](./puppeteer.elementhandle.isvisible.md) | | Checks if an element is visible using the same mechanism as [ElementHandle.waitForSelector()](./puppeteer.elementhandle.waitforselector.md). |
| [press(key, options)](./puppeteer.elementhandle.press.md) | | Focuses the element, and then uses [Keyboard.down()](./puppeteer.keyboard.down.md) and [Keyboard.up()](./puppeteer.keyboard.up.md). |
| [screenshot(this, options)](./puppeteer.elementhandle.screenshot.md) | | This method scrolls element into view if needed, and then uses to take a screenshot of the element. If the element is detached from DOM, the method throws an error. |
| [screenshot(this, options)](./puppeteer.elementhandle.screenshot.md) | | This method scrolls element into view if needed, and then uses [Page.screenshot()](./puppeteer.page.screenshot_1.md) to take a screenshot of the element. If the element is detached from DOM, the method throws an error. |
| [scrollIntoView(this)](./puppeteer.elementhandle.scrollintoview.md) | | Scrolls the element into view using either the automation protocol client or by calling element.scrollIntoView. |
| [select(values)](./puppeteer.elementhandle.select.md) | | Triggers a <code>change</code> and <code>input</code> event once all the provided options have been selected. If there's no <code>&lt;select&gt;</code> element matching <code>selector</code>, the method throws an error. |
| [tap(this)](./puppeteer.elementhandle.tap.md) | | This method scrolls element into view if needed, and then uses [Touchscreen.tap()](./puppeteer.touchscreen.tap.md) to tap in the center of the element. If the element is detached from DOM, the method throws an error. |
Expand Down
2 changes: 1 addition & 1 deletion docs/api/puppeteer.elementhandle.screenshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_label: ElementHandle.screenshot

# ElementHandle.screenshot() method

This method scrolls element into view if needed, and then uses to take a screenshot of the element. If the element is detached from DOM, the method throws an error.
This method scrolls element into view if needed, and then uses [Page.screenshot()](./puppeteer.page.screenshot_1.md) to take a screenshot of the element. If the element is detached from DOM, the method throws an error.

#### Signature:

Expand Down
2 changes: 1 addition & 1 deletion docs/api/puppeteer.touchscreen.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Touchscreen class exposes touchscreen events.
#### Signature:

```typescript
export declare class Touchscreen
export declare abstract class Touchscreen
```

## Remarks
Expand Down
2 changes: 1 addition & 1 deletion docs/api/puppeteer.touchscreen.touchend.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Dispatches a `touchend` event.

```typescript
class Touchscreen {
touchEnd(): Promise<void>;
abstract touchEnd(): Promise<void>;
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/api/puppeteer.touchscreen.touchmove.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Dispatches a `touchMove` event.

```typescript
class Touchscreen {
touchMove(x: number, y: number): Promise<void>;
abstract touchMove(x: number, y: number): Promise<void>;
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/api/puppeteer.touchscreen.touchstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Dispatches a `touchstart` event.

```typescript
class Touchscreen {
touchStart(x: number, y: number): Promise<void>;
abstract touchStart(x: number, y: number): Promise<void>;
}
```

Expand Down
Loading

0 comments on commit 9c0c299

Please sign in to comment.