Skip to main content

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
76%
Published
2 weeks ago (0.4.3)
I
BoundingBox
No documentation available
I
BoxModel
No documentation available
c
Browser

The browser class is instantiated when you run the launch method.

I
BrowserOptions
No documentation available
f
cleanCache

Clean cache

c
ConsoleEvent
No documentation available
I
ConsoleEventDetails
No documentation available
f
convertToUint8Array

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

T
DeleteCookieOptions
No documentation available
c
Dialog

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

c
DialogEvent
No documentation available
T
DialogType
No documentation available
T
ElementEvaluateFunction
No documentation available
I
ElementEvaluateOptions
No documentation available
c
ElementHandle

ElementHandle represents an in-page DOM element.

T
EvaluateFunction
No documentation available
I
EvaluateOptions
No documentation available
c
FileChooser

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

c
FileChooserEvent
No documentation available
f
getBinary

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

f
getDefaultCachePath
No documentation available
T
GoToOptions
No documentation available
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
No documentation available
T
KeyInput
No documentation available
f
launch

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

I
LaunchOptions
No documentation available
T
MediaFeature
No documentation available
c
Mouse

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

I
MouseClickOptions
No documentation available
I
MouseOptions
No documentation available
I
Offset
No documentation available
c
Page

Page provides methods to interact with a single tab in the browser

c
PageErrorEvent
No documentation available
I
PageEventMap
No documentation available
T
PdfOptions
No documentation available
T
Point
No documentation available
f
retryDeadline

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

T
SandboxOptions
No documentation available
T
ScreenshotOptions
No documentation available
v
SUPPORTED_VERSIONS
No documentation available
c
Touchscreen

The Touchscreen class exposes touchscreen events.

T
WaitForNetworkIdleOptions
No documentation available
T
WaitForOptions
No documentation available
I
WaitForSelectorOptions
No documentation available
v
WEBSOCKET_ENDPOINT_REGEX
No documentation available
f
websocketReady

Utility method to wait until a websocket is ready