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, ConnectOverCdpBuilder, NewContextBuilder};
16pub use context::{
17    BrowserContext, ClearCookiesBuilder, ColorScheme, ContextEventManager, ContextOptions,
18    ContextOptionsBuilder, Cookie, ForcedColors, Geolocation, HandlerId, HttpCredentials,
19    IndexedDbDatabase, IndexedDbEntry, IndexedDbIndex, IndexedDbObjectStore, LocalStorageEntry,
20    PageInfo, Permission, ReducedMotion, SameSite, SetGeolocationBuilder, StorageOrigin,
21    StorageState, StorageStateBuilder, StorageStateOptions, StorageStateSource, Tracing,
22    TracingOptions, ViewportSize as ContextViewportSize,
23};
24pub use error::CoreError;
25pub use network::{
26    AbortError,
27    ContinueBuilder,
28    FetchedResponse,
29    FulfillBuilder,
30    HeaderEntry,
31    NetworkEvent,
32    NetworkEventListener,
33    RemoteAddress,
34    Request,
35    RequestEvent,
36    RequestFailedEvent,
37    RequestFinishedEvent,
38    RequestSizes,
39    RequestTiming,
40    ResourceType,
41    Response,
42    ResponseEvent,
43    Route,
44    RouteHandler,
45    RouteHandlerRegistry,
46    SecurityDetails,
47    UrlMatcher,
48    UrlPattern,
49    WaitForRequestBuilder,
50    WaitForResponseBuilder,
51    // WebSocket monitoring
52    WebSocket,
53    WebSocketFrame,
54    WebSocketManager,
55};
56pub use page::{
57    // Screenshot & PDF
58    Animations,
59    AriaCheckedState,
60    AriaRole,
61    AriaSnapshot,
62    // Element handles and bounding boxes
63    BoundingBox,
64    BoxModel,
65    ClipRegion,
66    // Clock mocking
67    Clock,
68    // Console and Error events
69    ConsoleMessage,
70    ConsoleMessageLocation,
71    ConsoleMessageType,
72    // Dialog, Download, FileChooser
73    Dialog,
74    DialogType,
75    Download,
76    DownloadState,
77    // Input devices
78    DragAndDropBuilder,
79    ElementHandle,
80    // Media and Vision Emulation
81    EmulateMediaBuilder,
82    FileChooser,
83    FilePayload,
84    FilterBuilder,
85    // Frame support
86    Frame,
87    FrameElementLocator,
88    FrameLocator,
89    FrameRoleLocatorBuilder,
90    // Navigation
91    GotoBuilder,
92    JsArg,
93    // JavaScript evaluation
94    JsHandle,
95    Keyboard,
96    Locator,
97    // Locator handlers
98    LocatorHandlerHandle,
99    LocatorHandlerOptions,
100    LocatorOptions,
101    Margins,
102    MediaType,
103    Mouse,
104    MouseButton,
105    NavigationResponse,
106    Page,
107    PageErrorInfo,
108    PaperFormat,
109    PdfBuilder,
110    Polling,
111    RoleLocatorBuilder,
112    ScreenshotBuilder,
113    ScreenshotFormat,
114    // Content manipulation
115    ScriptTagBuilder,
116    ScriptType,
117    Selector,
118    SetContentBuilder,
119    StyleTagBuilder,
120    TextOptions,
121    TimeValue,
122    Touchscreen,
123    // Video recording
124    Video,
125    VideoOptions,
126    // Viewport
127    ViewportSize,
128    VisionDeficiency,
129    WaitForFunctionBuilder,
130    WebError,
131};
132pub use wait::DocumentLoadState;