Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IClickOpts

Describes the opts parameter passed to PageElement's click function.

Hierarchy

Index

Properties

Optional customScroll

customScroll: IScrollParams

Before clicking on PageElement, the PageElement will be scrolled into the viewport.

By defining customScroll, PageElement's default custom scrolling behavior can be overwritten.

Optional interval

interval: number

An interval in milliseconds.

Optional postCondition

postCondition: function

If defined, the click on PageElement will be repeated until the result of postCondition returns true or until a specific timeout is reached.

This can be useful, for example, if an HTML element does not react to clicks until a certain async code is finished executing.

Type declaration

    • (): boolean
    • Returns boolean

Optional timeout

timeout: number

A timeout in milliseconds.

Generated using TypeDoc