viewpoint_core/
lib.rs

1//! Core domain types for `Viewpoint` browser automation.
2//!
3//! This crate provides the high-level API for browser automation,
4//! including Browser, `BrowserContext`, Page, and navigation types.
5
6pub mod api;
7pub mod browser;
8pub mod context;
9pub mod devices;
10pub mod error;
11pub mod network;
12pub mod page;
13pub mod wait;
14
15pub use browser::{Browser, BrowserBuilder, NewContextBuilder};
16pub use context::{
17    BrowserContext, ClearCookiesBuilder, ColorScheme, ContextEventManager, ContextOptions,
18    ContextOptionsBuilder, Cookie, ForcedColors, Geolocation, HandlerId, HttpCredentials,
19    IndexedDbDatabase, IndexedDbEntry, IndexedDbIndex, IndexedDbObjectStore,
20    LocalStorageEntry, PageInfo, Permission, ReducedMotion, SameSite, SetGeolocationBuilder,
21    StorageOrigin, StorageState, StorageStateBuilder, StorageStateOptions, StorageStateSource,
22    Tracing, TracingOptions, ViewportSize as ContextViewportSize,
23};
24pub use error::CoreError;
25pub use network::{
26    AbortError, ContinueBuilder, FetchedResponse, FulfillBuilder, HeaderEntry, NetworkEvent,
27    NetworkEventListener, RemoteAddress, Request, RequestEvent, RequestFailedEvent,
28    RequestFinishedEvent, RequestSizes, RequestTiming, ResourceType, Response, ResponseEvent,
29    Route, RouteHandler, RouteHandlerRegistry, SecurityDetails, UrlMatcher, UrlPattern,
30    WaitForRequestBuilder, WaitForResponseBuilder,
31    // WebSocket monitoring
32    WebSocket, WebSocketFrame, WebSocketManager,
33};
34pub use page::{
35    AriaCheckedState, AriaRole, AriaSnapshot, FilterBuilder, Locator, LocatorOptions, Page, RoleLocatorBuilder, Selector, TextOptions,
36    // Screenshot & PDF
37    Animations, ClipRegion, ScreenshotBuilder, ScreenshotFormat,
38    Margins, PaperFormat, PdfBuilder,
39    // JavaScript evaluation
40    JsHandle, Polling, WaitForFunctionBuilder,
41    // Content manipulation
42    ScriptTagBuilder, ScriptType, SetContentBuilder, StyleTagBuilder,
43    // Viewport
44    ViewportSize,
45    // Navigation
46    GotoBuilder, NavigationResponse,
47    // Input devices
48    DragAndDropBuilder, Keyboard, Mouse, MouseButton, Touchscreen,
49    // Frame support
50    Frame, FrameElementLocator, FrameLocator, FrameRoleLocatorBuilder,
51    // Dialog, Download, FileChooser
52    Dialog, DialogType, Download, DownloadState, FileChooser, FilePayload,
53    // Locator handlers
54    LocatorHandlerHandle, LocatorHandlerOptions,
55    // Clock mocking
56    Clock, TimeValue,
57    // Media and Vision Emulation
58    EmulateMediaBuilder, MediaType, VisionDeficiency,
59    // Console and Error events
60    ConsoleMessage, ConsoleMessageLocation, ConsoleMessageType, JsArg,
61    PageErrorInfo, WebError,
62    // Video recording
63    Video, VideoOptions,
64    // Element handles and bounding boxes
65    BoundingBox, BoxModel, ElementHandle,
66};
67pub use wait::DocumentLoadState;