pub struct Page { /* private fields */ }Expand description
Channel for the Page interface (page.yml).
Implementations§
Source§impl Page
impl Page
Sourcepub async fn add_init_script(
&self,
params: PageAddInitScriptParams,
) -> Result<PageAddInitScriptResult, ProtocolError>
pub async fn add_init_script( &self, params: PageAddInitScriptParams, ) -> Result<PageAddInitScriptResult, ProtocolError>
Page.addInitScript (“Add init script”).
Sourcepub async fn close(&self, params: PageCloseParams) -> Result<(), ProtocolError>
pub async fn close(&self, params: PageCloseParams) -> Result<(), ProtocolError>
Page.close (“Close page”).
Sourcepub async fn run_before_unload(&self) -> Result<(), ProtocolError>
pub async fn run_before_unload(&self) -> Result<(), ProtocolError>
Page.runBeforeUnload (“Run beforeunload”).
Sourcepub async fn clear_console_messages(&self) -> Result<(), ProtocolError>
pub async fn clear_console_messages(&self) -> Result<(), ProtocolError>
Page.clearConsoleMessages (“Clear console messages”).
Sourcepub async fn console_messages(
&self,
params: PageConsoleMessagesParams,
) -> Result<PageConsoleMessagesResult, ProtocolError>
pub async fn console_messages( &self, params: PageConsoleMessagesParams, ) -> Result<PageConsoleMessagesResult, ProtocolError>
Page.consoleMessages (“Get console messages”).
Sourcepub async fn emulate_media(
&self,
params: PageEmulateMediaParams,
) -> Result<(), ProtocolError>
pub async fn emulate_media( &self, params: PageEmulateMediaParams, ) -> Result<(), ProtocolError>
Page.emulateMedia (“Emulate media”).
Sourcepub async fn expose_binding(
&self,
params: PageExposeBindingParams,
) -> Result<PageExposeBindingResult, ProtocolError>
pub async fn expose_binding( &self, params: PageExposeBindingParams, ) -> Result<PageExposeBindingResult, ProtocolError>
Page.exposeBinding (“Expose binding”).
Sourcepub async fn go_back(
&self,
params: PageGoBackParams,
) -> Result<PageGoBackResult, ProtocolError>
pub async fn go_back( &self, params: PageGoBackParams, ) -> Result<PageGoBackResult, ProtocolError>
Page.goBack (“Go back”).
Sourcepub async fn go_forward(
&self,
params: PageGoForwardParams,
) -> Result<PageGoForwardResult, ProtocolError>
pub async fn go_forward( &self, params: PageGoForwardParams, ) -> Result<PageGoForwardResult, ProtocolError>
Page.goForward (“Go forward”).
Sourcepub async fn request_gc(&self) -> Result<(), ProtocolError>
pub async fn request_gc(&self) -> Result<(), ProtocolError>
Page.requestGC (“Request garbage collection”).
Sourcepub async fn register_locator_handler(
&self,
params: PageRegisterLocatorHandlerParams,
) -> Result<PageRegisterLocatorHandlerResult, ProtocolError>
pub async fn register_locator_handler( &self, params: PageRegisterLocatorHandlerParams, ) -> Result<PageRegisterLocatorHandlerResult, ProtocolError>
Page.registerLocatorHandler (“Register locator handler”).
Sourcepub async fn resolve_locator_handler_no_reply(
&self,
params: PageResolveLocatorHandlerNoReplyParams,
) -> Result<(), ProtocolError>
pub async fn resolve_locator_handler_no_reply( &self, params: PageResolveLocatorHandlerNoReplyParams, ) -> Result<(), ProtocolError>
Page.resolveLocatorHandlerNoReply (internal).
Sourcepub async fn unregister_locator_handler(
&self,
params: PageUnregisterLocatorHandlerParams,
) -> Result<(), ProtocolError>
pub async fn unregister_locator_handler( &self, params: PageUnregisterLocatorHandlerParams, ) -> Result<(), ProtocolError>
Page.unregisterLocatorHandler (“Unregister locator handler”).
Sourcepub async fn reload(
&self,
params: PageReloadParams,
) -> Result<PageReloadResult, ProtocolError>
pub async fn reload( &self, params: PageReloadParams, ) -> Result<PageReloadResult, ProtocolError>
Page.reload (“Reload”).
Sourcepub async fn expect_screenshot(
&self,
params: PageExpectScreenshotParams,
) -> Result<PageExpectScreenshotResult, ProtocolError>
pub async fn expect_screenshot( &self, params: PageExpectScreenshotParams, ) -> Result<PageExpectScreenshotResult, ProtocolError>
Page.expectScreenshot (“Expect screenshot”).
Sourcepub async fn screenshot(
&self,
params: PageScreenshotParams,
) -> Result<PageScreenshotResult, ProtocolError>
pub async fn screenshot( &self, params: PageScreenshotParams, ) -> Result<PageScreenshotResult, ProtocolError>
Page.screenshot (“Screenshot”).
Sourcepub async fn set_extra_http_headers(
&self,
params: PageSetExtraHTTPHeadersParams,
) -> Result<(), ProtocolError>
pub async fn set_extra_http_headers( &self, params: PageSetExtraHTTPHeadersParams, ) -> Result<(), ProtocolError>
Page.setExtraHTTPHeaders (“Set extra HTTP headers”).
Sourcepub async fn set_network_interception_patterns(
&self,
params: PageSetNetworkInterceptionPatternsParams,
) -> Result<(), ProtocolError>
pub async fn set_network_interception_patterns( &self, params: PageSetNetworkInterceptionPatternsParams, ) -> Result<(), ProtocolError>
Page.setNetworkInterceptionPatterns (“Route requests”).
Sourcepub async fn set_web_socket_interception_patterns(
&self,
params: PageSetWebSocketInterceptionPatternsParams,
) -> Result<(), ProtocolError>
pub async fn set_web_socket_interception_patterns( &self, params: PageSetWebSocketInterceptionPatternsParams, ) -> Result<(), ProtocolError>
Page.setWebSocketInterceptionPatterns (“Route WebSockets”).
Sourcepub async fn set_viewport_size(
&self,
params: PageSetViewportSizeParams,
) -> Result<(), ProtocolError>
pub async fn set_viewport_size( &self, params: PageSetViewportSizeParams, ) -> Result<(), ProtocolError>
Page.setViewportSize (“Set viewport size”).
Sourcepub async fn keyboard_down(
&self,
params: PageKeyboardDownParams,
) -> Result<(), ProtocolError>
pub async fn keyboard_down( &self, params: PageKeyboardDownParams, ) -> Result<(), ProtocolError>
Page.keyboardDown (“Key down “{key}”“).
Sourcepub async fn keyboard_up(
&self,
params: PageKeyboardUpParams,
) -> Result<(), ProtocolError>
pub async fn keyboard_up( &self, params: PageKeyboardUpParams, ) -> Result<(), ProtocolError>
Page.keyboardUp (“Key up “{key}”“).
Sourcepub async fn keyboard_insert_text(
&self,
params: PageKeyboardInsertTextParams,
) -> Result<(), ProtocolError>
pub async fn keyboard_insert_text( &self, params: PageKeyboardInsertTextParams, ) -> Result<(), ProtocolError>
Page.keyboardInsertText (“Insert “{text}”“).
Sourcepub async fn keyboard_type(
&self,
params: PageKeyboardTypeParams,
) -> Result<(), ProtocolError>
pub async fn keyboard_type( &self, params: PageKeyboardTypeParams, ) -> Result<(), ProtocolError>
Page.keyboardType (“Type “{text}”“).
Sourcepub async fn keyboard_press(
&self,
params: PageKeyboardPressParams,
) -> Result<(), ProtocolError>
pub async fn keyboard_press( &self, params: PageKeyboardPressParams, ) -> Result<(), ProtocolError>
Page.keyboardPress (“Press “{key}”“).
Sourcepub async fn mouse_move(
&self,
params: PageMouseMoveParams,
) -> Result<(), ProtocolError>
pub async fn mouse_move( &self, params: PageMouseMoveParams, ) -> Result<(), ProtocolError>
Page.mouseMove (“Mouse move”).
Sourcepub async fn mouse_down(
&self,
params: PageMouseDownParams,
) -> Result<(), ProtocolError>
pub async fn mouse_down( &self, params: PageMouseDownParams, ) -> Result<(), ProtocolError>
Page.mouseDown (“Mouse down”).
Sourcepub async fn mouse_up(
&self,
params: PageMouseUpParams,
) -> Result<(), ProtocolError>
pub async fn mouse_up( &self, params: PageMouseUpParams, ) -> Result<(), ProtocolError>
Page.mouseUp (“Mouse up”).
Sourcepub async fn mouse_click(
&self,
params: PageMouseClickParams,
) -> Result<(), ProtocolError>
pub async fn mouse_click( &self, params: PageMouseClickParams, ) -> Result<(), ProtocolError>
Page.mouseClick (“Click”).
Sourcepub async fn mouse_wheel(
&self,
params: PageMouseWheelParams,
) -> Result<(), ProtocolError>
pub async fn mouse_wheel( &self, params: PageMouseWheelParams, ) -> Result<(), ProtocolError>
Page.mouseWheel (“Mouse wheel”).
Sourcepub async fn touchscreen_tap(
&self,
params: PageTouchscreenTapParams,
) -> Result<(), ProtocolError>
pub async fn touchscreen_tap( &self, params: PageTouchscreenTapParams, ) -> Result<(), ProtocolError>
Page.touchscreenTap (“Tap”).
Sourcepub async fn clear_page_errors(&self) -> Result<(), ProtocolError>
pub async fn clear_page_errors(&self) -> Result<(), ProtocolError>
Page.clearPageErrors (“Clear page errors”).
Sourcepub async fn page_errors(
&self,
params: PagePageErrorsParams,
) -> Result<PagePageErrorsResult, ProtocolError>
pub async fn page_errors( &self, params: PagePageErrorsParams, ) -> Result<PagePageErrorsResult, ProtocolError>
Page.pageErrors (“Get page errors”).
Sourcepub async fn pdf(
&self,
params: PagePdfParams,
) -> Result<PagePdfResult, ProtocolError>
pub async fn pdf( &self, params: PagePdfParams, ) -> Result<PagePdfResult, ProtocolError>
Page.pdf (“PDF”).
Sourcepub async fn requests(&self) -> Result<PageRequestsResult, ProtocolError>
pub async fn requests(&self) -> Result<PageRequestsResult, ProtocolError>
Page.requests (“Get network requests”).
Sourcepub async fn start_js_coverage(
&self,
params: PageStartJSCoverageParams,
) -> Result<(), ProtocolError>
pub async fn start_js_coverage( &self, params: PageStartJSCoverageParams, ) -> Result<(), ProtocolError>
Page.startJSCoverage (“Start JS coverage”).
Sourcepub async fn stop_js_coverage(
&self,
) -> Result<PageStopJSCoverageResult, ProtocolError>
pub async fn stop_js_coverage( &self, ) -> Result<PageStopJSCoverageResult, ProtocolError>
Page.stopJSCoverage (“Stop JS coverage”).
Sourcepub async fn start_css_coverage(
&self,
params: PageStartCSSCoverageParams,
) -> Result<(), ProtocolError>
pub async fn start_css_coverage( &self, params: PageStartCSSCoverageParams, ) -> Result<(), ProtocolError>
Page.startCSSCoverage (“Start CSS coverage”).
Sourcepub async fn stop_css_coverage(
&self,
) -> Result<PageStopCSSCoverageResult, ProtocolError>
pub async fn stop_css_coverage( &self, ) -> Result<PageStopCSSCoverageResult, ProtocolError>
Page.stopCSSCoverage (“Stop CSS coverage”).
Sourcepub async fn bring_to_front(&self) -> Result<(), ProtocolError>
pub async fn bring_to_front(&self) -> Result<(), ProtocolError>
Page.bringToFront (“Bring to front”).
Sourcepub async fn pick_locator(&self) -> Result<PagePickLocatorResult, ProtocolError>
pub async fn pick_locator(&self) -> Result<PagePickLocatorResult, ProtocolError>
Page.pickLocator (“Pick locator”).
Sourcepub async fn cancel_pick_locator(&self) -> Result<(), ProtocolError>
pub async fn cancel_pick_locator(&self) -> Result<(), ProtocolError>
Page.cancelPickLocator (“Cancel pick locator”).
Sourcepub async fn hide_highlight(&self) -> Result<(), ProtocolError>
pub async fn hide_highlight(&self) -> Result<(), ProtocolError>
Page.hideHighlight (“Hide all element highlights”).
Sourcepub async fn screencast_show_overlay(
&self,
params: PageScreencastShowOverlayParams,
) -> Result<PageScreencastShowOverlayResult, ProtocolError>
pub async fn screencast_show_overlay( &self, params: PageScreencastShowOverlayParams, ) -> Result<PageScreencastShowOverlayResult, ProtocolError>
Page.screencastShowOverlay (“Show overlay”).
Sourcepub async fn screencast_remove_overlay(
&self,
params: PageScreencastRemoveOverlayParams,
) -> Result<(), ProtocolError>
pub async fn screencast_remove_overlay( &self, params: PageScreencastRemoveOverlayParams, ) -> Result<(), ProtocolError>
Page.screencastRemoveOverlay (“Remove overlay”).
Sourcepub async fn screencast_chapter(
&self,
params: PageScreencastChapterParams,
) -> Result<(), ProtocolError>
pub async fn screencast_chapter( &self, params: PageScreencastChapterParams, ) -> Result<(), ProtocolError>
Page.screencastChapter (“Show chapter overlay”).
Sourcepub async fn screencast_set_overlay_visible(
&self,
params: PageScreencastSetOverlayVisibleParams,
) -> Result<(), ProtocolError>
pub async fn screencast_set_overlay_visible( &self, params: PageScreencastSetOverlayVisibleParams, ) -> Result<(), ProtocolError>
Page.screencastSetOverlayVisible (“Set overlay visibility”).
Sourcepub async fn screencast_show_actions(
&self,
params: PageScreencastShowActionsParams,
) -> Result<(), ProtocolError>
pub async fn screencast_show_actions( &self, params: PageScreencastShowActionsParams, ) -> Result<(), ProtocolError>
Page.screencastShowActions (“Show actions”).
Sourcepub async fn screencast_hide_actions(&self) -> Result<(), ProtocolError>
pub async fn screencast_hide_actions(&self) -> Result<(), ProtocolError>
Page.screencastHideActions (“Remove actions”).
Sourcepub async fn screencast_start(
&self,
params: PageScreencastStartParams,
) -> Result<PageScreencastStartResult, ProtocolError>
pub async fn screencast_start( &self, params: PageScreencastStartParams, ) -> Result<PageScreencastStartResult, ProtocolError>
Page.screencastStart (“Start screencast”).
Sourcepub async fn screencast_frame_ack(
&self,
params: PageScreencastFrameAckParams,
) -> Result<(), ProtocolError>
pub async fn screencast_frame_ack( &self, params: PageScreencastFrameAckParams, ) -> Result<(), ProtocolError>
Page.screencastFrameAck (internal).
Sourcepub async fn screencast_stop(&self) -> Result<(), ProtocolError>
pub async fn screencast_stop(&self) -> Result<(), ProtocolError>
Page.screencastStop (“Stop screencast”).
Sourcepub async fn update_subscription(
&self,
params: PageUpdateSubscriptionParams,
) -> Result<(), ProtocolError>
pub async fn update_subscription( &self, params: PageUpdateSubscriptionParams, ) -> Result<(), ProtocolError>
Page.updateSubscription (internal).
Sourcepub async fn set_dock_tile(
&self,
params: PageSetDockTileParams,
) -> Result<(), ProtocolError>
pub async fn set_dock_tile( &self, params: PageSetDockTileParams, ) -> Result<(), ProtocolError>
Page.setDockTile (internal).
Sourcepub async fn web_storage_items(
&self,
params: PageWebStorageItemsParams,
) -> Result<PageWebStorageItemsResult, ProtocolError>
pub async fn web_storage_items( &self, params: PageWebStorageItemsParams, ) -> Result<PageWebStorageItemsResult, ProtocolError>
Page.webStorageItems (“Get WebStorage items”).
Sourcepub async fn web_storage_get_item(
&self,
params: PageWebStorageGetItemParams,
) -> Result<PageWebStorageGetItemResult, ProtocolError>
pub async fn web_storage_get_item( &self, params: PageWebStorageGetItemParams, ) -> Result<PageWebStorageGetItemResult, ProtocolError>
Page.webStorageGetItem (“Get WebStorage item”).
Sourcepub async fn web_storage_set_item(
&self,
params: PageWebStorageSetItemParams,
) -> Result<(), ProtocolError>
pub async fn web_storage_set_item( &self, params: PageWebStorageSetItemParams, ) -> Result<(), ProtocolError>
Page.webStorageSetItem (“Set WebStorage item”).
Sourcepub async fn web_storage_remove_item(
&self,
params: PageWebStorageRemoveItemParams,
) -> Result<(), ProtocolError>
pub async fn web_storage_remove_item( &self, params: PageWebStorageRemoveItemParams, ) -> Result<(), ProtocolError>
Page.webStorageRemoveItem (“Remove WebStorage item”).
Sourcepub async fn web_storage_clear(
&self,
params: PageWebStorageClearParams,
) -> Result<(), ProtocolError>
pub async fn web_storage_clear( &self, params: PageWebStorageClearParams, ) -> Result<(), ProtocolError>
Page.webStorageClear (“Clear WebStorage”).
Trait Implementations§
Source§impl ChannelType for Page
impl ChannelType for Page
Source§type Initializer = PageInitializer
type Initializer = PageInitializer
__create__.Source§fn accepts(interface: &str) -> bool
fn accepts(interface: &str) -> bool
interface can be used as this type (an
ElementHandle is also a JSHandle).Source§fn from_channel(channel: Channel) -> Self
fn from_channel(channel: Channel) -> Self
Source§fn initializer(&self) -> Result<Self::Initializer, ProtocolError>
fn initializer(&self) -> Result<Self::Initializer, ProtocolError>
Source§fn events(&self) -> EventStream<Self::Event>
fn events(&self) -> EventStream<Self::Event>
Auto Trait Implementations§
impl !RefUnwindSafe for Page
impl !UnwindSafe for Page
impl Freeze for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more