2022-08-06 14:49:20 +00:00
---
sidebar_label: Page.setDragInterception
---
# Page.setDragInterception() method
2023-09-19 13:03:19 +00:00
> Warning: This API is now obsolete.
>
2024-04-11 16:51:07 +00:00
> We no longer support intercepting drag payloads. Use the new drag APIs found on [ElementHandle](./puppeteer.elementhandle.md) to drag (or just use the [Page.mouse](./puppeteer.page.md#mouse)).
2023-09-19 13:03:19 +00:00
2022-10-24 14:31:12 +00:00
#### Signature:
2022-08-06 14:49:20 +00:00
```typescript
class Page {
2023-11-15 10:48:54 +00:00
abstract setDragInterception(enabled: boolean): Promise< void > ;
2022-08-06 14:49:20 +00:00
}
```
## Parameters
2024-03-25 13:03:57 +00:00
< table > < thead > < tr > < th >
2022-08-06 14:49:20 +00:00
2024-03-25 13:03:57 +00:00
Parameter
< / th > < th >
Type
< / th > < th >
Description
< / th > < / tr > < / thead >
< tbody > < tr > < td >
enabled
< / td > < td >
boolean
< / td > < td >
Whether to enable drag interception.
< / td > < / tr >
< / tbody > < / table >
2022-08-06 14:49:20 +00:00
**Returns:**
Promise< void>