Skip to main content
This release is 1 version behind 0.4.9 — the latest version of @astral/astral. Jump to latest

Built and signed on GitHub Actions

Astral is the browser automation library for Deno

This package works with Deno
This package works with Deno
JSR Score
100%
Published
2 months ago (0.4.8)
I
BoundingBox

The xywh model of an element.

I
BoxModel

The box model of an element.

I
BrowserOptions

Options for launching a browser

f
cleanCache

Clean cache

c
ConsoleEvent

The console event class

I
ConsoleEventDetails

The details for a console event

f
convertToUint8Array

Utility method to convert a base64 encoded string into a byte array

T
DeleteCookieOptions

The options for deleting a cookie

c
Dialog

Dialog provides an api for managing a page's dialog events.

c
DialogEvent

The dialog event class

T
DialogType

The type of the dialog.

T
ElementEvaluateFunction

The evaluate function for ElementHandle.evaluate method.

I
ElementEvaluateOptions

The options for ElementHandle.evaluate method.

T
EvaluateFunction

The type definition for a function that can be evaluated in the page

I
EvaluateOptions

The options for evaluating a function in the page

c
FileChooser

Dialog provides an api for managing a page's dialog events.

c
FileChooserEvent

The file chooser event class

f
getBinary

Get path for the binary for this OS. Downloads a browser if none is cached.

f
getDefaultCachePath
No documentation available
T
GoToOptions

The options for goTo

c
Keyboard

Keyboard provides an api for managing a virtual keyboard. The high level api is Keyboard.type(), which takes raw characters and generates proper keydown, keypress/input, and keyup events on your page.

I
KeyboardTypeOptions

Options for typing on the keyboard

T
KeyInput

Valid keys.

f
launch

Launches a browser instance with given arguments and options when specified.

T
MediaFeature

The options for valid media features

c
Mouse

The Mouse class operates in main-frame CSS pixels relative to the top-left corner of the viewport.

I
MouseClickOptions

Options for mouse clicking.

I
MouseOptions

Options for mouse events.

I
Offset

The x and y coordinates of a point.

c
PageErrorEvent

The page error event class

I
PageEventMap

The events that may be emitted from a page

T
PdfOptions

The options for pdf

T
Point

The x and y coordinates of a point.

f
retryDeadline

Utility method to retry an operation a number of times with a deadline

T
SandboxOptions

The options for sandboxing

T
ScreenshotOptions

The options for screenshot

v
SUPPORTED_VERSIONS

The automatically downloaded browser versions that are known to work.

c
Touchscreen

The Touchscreen class exposes touchscreen events.

T
WaitForNetworkIdleOptions

The options for waitForNetworkIdle

T
WaitForOptions

The options for waitFor

I
WaitForSelectorOptions

The options for waitForSelector

v
WEBSOCKET_ENDPOINT_REGEX

Regular expression to extract the endpoint from a websocket url

f
websocketReady

Utility method to wait until a websocket is ready