Module page

Module page 

Source
Expand description

Page management and navigation.

Re-exports§

pub use clock::Clock;
pub use clock::TimeValue;
pub use console::ConsoleMessage;
pub use console::ConsoleMessageLocation;
pub use console::ConsoleMessageType;
pub use console::JsArg;
pub use dialog::Dialog;
pub use download::Download;
pub use download::DownloadState;
pub use emulation::EmulateMediaBuilder;
pub use emulation::MediaType;
pub use emulation::VisionDeficiency;
pub use events::PageEventManager;
pub use file_chooser::FileChooser;
pub use file_chooser::FilePayload;
pub use frame::Frame;
pub use frame_locator::FrameElementLocator;
pub use frame_locator::FrameLocator;
pub use frame_locator::FrameRoleLocatorBuilder;
pub use keyboard::Keyboard;
pub use locator::AriaCheckedState;
pub use locator::AriaRole;
pub use locator::AriaSnapshot;
pub use locator::BoundingBox;
pub use locator::BoxModel;
pub use locator::ElementHandle;
pub use locator::FilterBuilder;
pub use locator::Locator;
pub use locator::LocatorOptions;
pub use locator::RoleLocatorBuilder;
pub use locator::Selector;
pub use locator::TapBuilder;
pub use locator::TextOptions;
pub use locator_handler::LocatorHandlerHandle;
pub use locator_handler::LocatorHandlerManager;
pub use locator_handler::LocatorHandlerOptions;
pub use page_error::PageError as PageErrorInfo;
pub use page_error::WebError;
pub use video::Video;
pub use video::VideoOptions;

Modules§

binding
Exposed function bindings.
clock
Clock mocking for controlling time in browser pages.
console
Console message types and event handling.
dialog
Dialog handling for browser dialogs.
download
Download handling for browser downloads.
emulation
Page emulation features for media and vision deficiency emulation.
events
Page event handling for dialogs, downloads, file choosers, console, and errors.
file_chooser
File chooser handling for file upload dialogs.
frame
Frame management and navigation.
frame_locator
Frame locator for interacting with iframe content.
keyboard
Keyboard input handling.
locator
Locator system for element selection.
locator_handler
Locator handlers for handling overlay elements that block actions.
page_error
Page error types and event handling.
popup
Popup window handling.
video
Video recording for pages.

Structs§

ClipRegion
Clip region for screenshots.
DragAndDropBuilder
Builder for drag and drop operations.
GotoBuilder
Builder for configuring page navigation.
JsHandle
A handle to a JavaScript object in the page context.
Margins
Margins for PDF generation in inches.
Mouse
Mouse controller for direct mouse input.
NavigationResponse
Response from a navigation.
Page
A browser page (tab).
PdfBuilder
Builder for generating PDFs.
ScreenshotBuilder
Builder for capturing screenshots.
ScriptTagBuilder
Builder for injecting script tags.
SetContentBuilder
Builder for setting page content.
StyleTagBuilder
Builder for injecting style tags.
Touchscreen
Touchscreen controller for touch input simulation.
ViewportSize
Viewport size.
WaitForFunctionBuilder
Builder for wait_for_function.

Enums§

Animations
Animation handling mode for screenshots.
DialogType
Type of JavaScript dialog.
MouseButton
Mouse button type.
PaperFormat
Paper format for PDF generation.
Polling
Polling mode for wait_for_function.
ScreenshotFormat
Image format for screenshots.
ScriptType
Script type for injection.

Constants§

DEFAULT_TEST_ID_ATTRIBUTE
Default test ID attribute name.