Type alias DragAndDropActionOptions

DragAndDropActionOptions: {
    force?: boolean;
    noWaitAfter?: boolean;
    sourcePosition?: Point;
    targetPosition?: Point;
    timeout?: number;
    trial?: boolean;
}

Type declaration

  • Optional force?: boolean

    Whether to bypass the actionability checks. Defaults to false.

  • Optional noWaitAfter?: boolean

    Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to inaccessible pages. Defaults to false.

  • Optional sourcePosition?: Point

    Clicks on the source element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.

  • Optional targetPosition?: Point

    Drops on the target element at this point relative to the top-left corner of the element's padding box. If not specified, some visible point of the element is used.

  • Optional timeout?: number

    Maximum time in milliseconds. Defaults to 0 - no timeout. The default value can be changed via actionTimeout option in the config, or by using the browserContext.setDefaultTimeout(timeout) or page.setDefaultTimeout(timeout) methods.

  • Optional trial?: boolean

    When set, this method only performs the actionability checks and skips the action. Defaults to false. Useful to wait until the element is ready for the action without performing it.

Generated using TypeDoc