Liking cljdoc? Tell your friends :D

com.blockether.spel.backend

Narrow browser-backend abstraction shared by the Playwright and iOS application (Appium/WebDriver) providers.

Covers only the common agent-facing surface: navigate, snapshot, click/fill/clear, evaluate, screenshot, history, cookies, tap/swipe. Playwright-specific advanced APIs (CDP, tracing, HAR, routing, frames, tabs, ...) intentionally stay OUTSIDE the protocol — callers must check backend-capabilities and fail with an explicit capability error.

Ref actions (@e2yrjz) resolve through the shared snapshot data-pw-ref attribute system on both backends.

Narrow browser-backend abstraction shared by the Playwright and iOS
application (Appium/WebDriver) providers.

Covers only the common agent-facing surface: navigate, snapshot,
click/fill/clear, evaluate, screenshot, history, cookies, tap/swipe.
Playwright-specific advanced APIs (CDP, tracing, HAR, routing, frames,
tabs, ...) intentionally stay OUTSIDE the protocol — callers must check
`backend-capabilities` and fail with an explicit capability error.

Ref actions (`@e2yrjz`) resolve through the shared snapshot
`data-pw-ref` attribute system on both backends.
raw docstring

BrowserBackendcljprotocol

evaluate!clj

(evaluate! backend script args)

Evaluates JavaScript, returning the decoded result.

Evaluates JavaScript, returning the decoded result.

click!clj

(click! backend selector opts)

Clicks the element for a CSS selector or @ref.

Clicks the element for a CSS selector or @ref.

current-urlclj

(current-url backend)

Returns the current URL string.

Returns the current URL string.

backend-kindclj

(backend-kind backend)

Returns a keyword identifying the backend (:playwright or :ios).

Returns a keyword identifying the backend (:playwright or :ios).

tap!clj

(tap! backend selector-or-coords opts)

Performs a native touch tap on a selector/@ref or [x y] coordinates.

Performs a native touch tap on a selector/@ref or [x y] coordinates.

close-backend!clj

(close-backend! backend)

Closes backend-owned resources. Idempotent.

Closes backend-owned resources. Idempotent.

swipe!clj

(swipe! backend opts)

Performs a native touch swipe ({:direction ...} or {:from ... :to ...}).

Performs a native touch swipe ({:direction ...} or {:from ... :to ...}).

cookiesclj

(cookies backend)

Returns the cookie list.

Returns the cookie list.

fill!clj

(fill! backend selector value opts)

Clears then fills the element for a CSS selector or @ref.

Clears then fills the element for a CSS selector or @ref.

reload!clj

(reload! backend)

Reloads the current page.

Reloads the current page.
(navigate! backend url opts)

Navigates to url. Returns {:url current-url}.

Navigates to `url`. Returns {:url current-url}.

clear!clj

(clear! backend selector opts)

Clears the element for a CSS selector or @ref.

Clears the element for a CSS selector or @ref.

backend-capabilitiesclj

(backend-capabilities backend)

Returns the set of supported capability keywords.

Returns the set of supported capability keywords.

go-forward!clj

(go-forward! backend)

History forward.

History forward.

page-titleclj

(page-title backend)

Returns the current page title string.

Returns the current page title string.

capture-snapshot!clj

(capture-snapshot! backend opts)

Captures a spel accessibility snapshot. Returns the snapshot map.

Captures a spel accessibility snapshot. Returns the snapshot map.

screenshot!clj

(screenshot! backend opts)

Returns PNG screenshot bytes.

Returns PNG screenshot bytes.

page-contentclj

(page-content backend)

Returns the page HTML source string.

Returns the page HTML source string.

go-back!clj

(go-back! backend)

History back.

History back.
source

ios-backendclj

(ios-backend ios-session)

Wraps an ios/IosSession in an IosAppBackend.

Wraps an ios/IosSession in an IosAppBackend.
sourceraw docstring

ios-capability-setclj

Capabilities supported by the iOS application (WebDriver) backend. Web-only capabilities become usable after switching to a WEBVIEW context.

Capabilities supported by the iOS application (WebDriver) backend.
Web-only capabilities become usable after switching to a WEBVIEW context.
sourceraw docstring

playwright-backendclj

(playwright-backend pw-page)

Wraps a Playwright Page in a PlaywrightBackend.

Wraps a Playwright Page in a PlaywrightBackend.
sourceraw docstring

playwright-capability-setclj

Capabilities supported by the Playwright backend.

Capabilities supported by the Playwright backend.
sourceraw docstring

ref-selector?clj

(ref-selector? s)

Returns true when a selector string is a snapshot ref (@e2yrjz).

Returns true when a selector string is a snapshot ref (@e2yrjz).
sourceraw docstring

resolve-cssclj

(resolve-css selector)

Resolves a selector-or-ref to a plain CSS selector. Refs become [data-pw-ref="..."] selectors; CSS passes through.

Resolves a selector-or-ref to a plain CSS selector.
Refs become [data-pw-ref="..."] selectors; CSS passes through.
sourceraw docstring

stale-ref-errorclj

(stale-ref-error selector cause)

Builds the standard stale-ref ex-info for a missing @ref.

Builds the standard stale-ref ex-info for a missing @ref.
sourceraw docstring

supports?clj

(supports? backend capability)

Returns true when the backend supports a capability keyword.

Returns true when the backend supports a capability keyword.
sourceraw docstring

unsupported!clj

(unsupported! backend operation)
(unsupported! backend operation alternative)

Throws the standard capability error for an unsupported operation.

Params: backend - the active backend (for kind + capability set). operation - String. The command/operation name. alternative - String, optional. Suggested alternative.

Throws the standard capability error for an unsupported operation.

Params:
`backend`     - the active backend (for kind + capability set).
`operation`   - String. The command/operation name.
`alternative` - String, optional. Suggested alternative.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close