Documentation
¶
Index ¶
- Constants
- Variables
- type Chain
- type DiagnosticsConfig
- type Driver
- type Element
- type LaunchConfig
- type NoopReporter
- type Option
- func WithDefaultElementTimeout(timeout time.Duration) Option
- func WithDefaultInterval(interval time.Duration) Option
- func WithDefaultReloadEachPoll(enabled bool) Option
- func WithDefaultTimeout(timeout time.Duration) Option
- func WithDefaultWaitStable(waitStable time.Duration) Option
- func WithDiagnosticsEnabled(enabled bool) Option
- func WithFailureHTML(enabled bool) Option
- func WithFailureScreenshot(enabled bool) Option
- func WithFailureSummary(enabled bool) Option
- func WithFailureURL(enabled bool) Option
- func WithReporter(reporter Reporter) Option
- type Reporter
- type Selector
- type WaitConfig
- type WaitOption
Constants ¶
Variables ¶
var ( ErrDriverNil = core.ErrDriverNil ErrBrowserNil = core.ErrBrowserNil ErrPageNil = core.ErrPageNil ErrElementNotFound = core.ErrElementNotFound ErrElementNotVisible = core.ErrElementNotVisible ErrElementUnstable = core.ErrElementUnstable ErrElementDisabled = core.ErrElementDisabled )
Functions ¶
This section is empty.
Types ¶
type DiagnosticsConfig ¶
type DiagnosticsConfig = core.DiagnosticsConfig
DiagnosticsConfig controls artifacts attached on step failure.
type Driver ¶
Driver is a high-level web driver DSL on top of Rod.
type LaunchConfig ¶
type LaunchConfig = core.LaunchConfig
LaunchConfig controls browser launcher options.
func DefaultLaunchConfig ¶
func DefaultLaunchConfig() LaunchConfig
DefaultLaunchConfig returns baseline browser launch settings for CI usage.
type NoopReporter ¶
type NoopReporter = core.NoopReporter
NoopReporter runs steps without additional reporting.
type Option ¶
Option configures Driver defaults.
func WithDefaultElementTimeout ¶
WithDefaultElementTimeout overrides per-element search timeout.
func WithDefaultInterval ¶
WithDefaultInterval overrides retry polling interval.
func WithDefaultReloadEachPoll ¶
WithDefaultReloadEachPoll enables page reload on every retry poll by default.
func WithDefaultTimeout ¶
WithDefaultTimeout overrides default operation timeout.
func WithDefaultWaitStable ¶
WithDefaultWaitStable overrides default wait-stable delay after element lookup.
func WithDiagnosticsEnabled ¶
WithDiagnosticsEnabled toggles automatic failure artifact collection.
func WithFailureHTML ¶
WithFailureHTML toggles page HTML attachment on step failure.
func WithFailureScreenshot ¶
WithFailureScreenshot toggles screenshot attachment on step failure.
func WithFailureSummary ¶
WithFailureSummary toggles text summary attachment on step failure.
func WithFailureURL ¶
WithFailureURL toggles current URL attachment on step failure.
func WithReporter ¶
WithReporter sets reporter used by the driver.
type WaitOption ¶
type WaitOption = core.WaitOption
WaitOption overrides wait settings for a single call.
func WithElementTimeout ¶
func WithElementTimeout(timeout time.Duration) WaitOption
WithElementTimeout overrides element lookup timeout for a single operation call.
func WithInterval ¶
func WithInterval(interval time.Duration) WaitOption
WithInterval overrides retry interval for a single operation call.
func WithReloadEachPoll ¶
func WithReloadEachPoll(enabled bool) WaitOption
WithReloadEachPoll enables page reload on each retry poll for a single call.
func WithTimeout ¶
func WithTimeout(timeout time.Duration) WaitOption
WithTimeout overrides timeout for a single operation call.
func WithWaitStable ¶
func WithWaitStable(waitStable time.Duration) WaitOption
WithWaitStable overrides stable wait delay for a single operation call.