Builtin actions
Table of contents
- check
- clearInput
- click
- doubleClick
- focus
- getNodeId
- getPosition
- goTo
- hover
- infiniteScrollIn
- navigationClick
- rightClick
- scrollIn
- scrollInUntilBottomIsReached
- scrollIntoView
- spaNavigationClick
- tap
- typeIn
- uncheck
- wait
- waitForDomContentLoadedEvent
- waitForInPageNavigation
- waitForLoadEvent
- waitUntil
- waitUntilExists
- waitUntilVisible
clearInput
Clears the text in a prop by pressing Backspace until the value is cleared.
A character count can be specified to only clear part of the text.
goTo
Navigates to a new page and waits for the document to load.
A timeout can be specified (in ms) for slow pages (default 10s).
Use a timeout of 0 to disable the timeout.
Learn more at https://ayakashi-io.github.io/docs/going_deeper/page-navigation.html#standard-navigation
infiniteScrollIn
Infinitely scrolls inside a scrollable prop.
Works with props that load more content and expand dynamically as they are being scrolled.
A callback can be triggered on each scrolling interval to extract data as we scroll.
The scrolling interval can be controlled with the interval option (default 1s).
The pixels to scroll each time can be controlled with the pixelsToScroll option.
If no pixelsToScroll is provided it will scroll to the (current) bottom of the prop.
The scrolling can be stopped with the stopScrollingAfter option (in ms) or if the final bottom is reached and no more content is available.
navigationClick
Clicks on a prop to navigate to a new page.
It should be used instead of click() so the new page can properly load.
A timeout can be specified (in ms) for slow pages (default 10s).
Use a timeout of 0 to disable the timeout.
Learn more at https://ayakashi-io.github.io/docs/going_deeper/page-navigation.html#click-to-navigate
scrollIn
Scrolls inside a scrollable prop by an amount of pixels.
If no pixels are specified it will scroll to the bottom of the prop.
Works for props with a static height.
Check the scrollInUntilBottomIsReached() and infiniteScrollIn() actions If the prop loads more content and expands dynamically as it is being scrolled.
scrollInUntilBottomIsReached
Scrolls inside a scrollable prop until its bottom is reached.
Works with props that load more content and expand dynamically as they are being scrolled.
The scrolling interval can be controlled with the interval parameter.
A timeout can be specified (in ms) to throw an error if the time is exceeded (default 10s) and the bottom is still not reached.
Use a timeout of 0 to disable the timeout.
spaNavigationClick
Clicks on a prop that changes the view in a dynamic page or single page application.
It should be used instead of click() so the view can properly load.
It will not reload the page like navigationClick().
A timeout can be specified (in ms) for slow pages (default 10s).
Use a timeout of 0 to disable the timeout.
Learn more at https://ayakashi-io.github.io/docs/going_deeper/page-navigation.html#single-page-application-spa-navigation
waitForDomContentLoadedEvent
Waits for the domContentLoaded event of a new page.
Learn more at https://ayakashi-io.github.io/docs/going_deeper/page-navigation.html#using-the-raw-events
waitForInPageNavigation
Waits for an in-page navigation to occur in a dynamic page or single page application.
Learn more at https://ayakashi-io.github.io/docs/going_deeper/page-navigation.html#using-the-raw-events
waitForLoadEvent
Waits for the load event of a new page.
Learn more at https://ayakashi-io.github.io/docs/going_deeper/page-navigation.html#using-the-raw-events
waitUntil
Waits by executing the callback until it returns a truthy value in a set interval.
The interval parameter can configure the callback execution interval (default 100ms).
A timeout can be specified (in ms) to throw an error if the time is exceeded (default 10s).