pub enum WebDriverCommandMsg {
Show 13 variants
GetWindowSize(TopLevelBrowsingContextId, IpcSender<WindowSizeData>),
LoadUrl(TopLevelBrowsingContextId, LoadData, IpcSender<LoadStatus>),
Refresh(TopLevelBrowsingContextId, IpcSender<LoadStatus>),
ScriptCommand(BrowsingContextId, WebDriverScriptCommand),
SendKeys(BrowsingContextId, Vec<Event>),
KeyboardAction(BrowsingContextId, KeyboardEvent),
MouseButtonAction(MouseEventType, MouseButton, f32, f32),
MouseMoveAction(f32, f32),
SetWindowSize(TopLevelBrowsingContextId, DeviceIntSize, IpcSender<WindowSizeData>),
TakeScreenshot(TopLevelBrowsingContextId, Option<Rect<f32, CSSPixel>>, IpcSender<Option<Image>>),
NewWebView(IpcSender<TopLevelBrowsingContextId>, IpcSender<LoadStatus>),
CloseWebView(TopLevelBrowsingContextId),
FocusWebView(TopLevelBrowsingContextId),
}
Expand description
Messages to the constellation originating from the WebDriver server.
Variants§
GetWindowSize(TopLevelBrowsingContextId, IpcSender<WindowSizeData>)
Get the window size.
LoadUrl(TopLevelBrowsingContextId, LoadData, IpcSender<LoadStatus>)
Load a URL in the top-level browsing context with the given ID.
Refresh(TopLevelBrowsingContextId, IpcSender<LoadStatus>)
Refresh the top-level browsing context with the given ID.
ScriptCommand(BrowsingContextId, WebDriverScriptCommand)
Pass a webdriver command to the script thread of the current pipeline of a browsing context.
SendKeys(BrowsingContextId, Vec<Event>)
Act as if keys were pressed in the browsing context with the given ID.
KeyboardAction(BrowsingContextId, KeyboardEvent)
Act as if keys were pressed or release in the browsing context with the given ID.
MouseButtonAction(MouseEventType, MouseButton, f32, f32)
Act as if the mouse was clicked in the browsing context with the given ID.
MouseMoveAction(f32, f32)
Act as if the mouse was moved in the browsing context with the given ID.
SetWindowSize(TopLevelBrowsingContextId, DeviceIntSize, IpcSender<WindowSizeData>)
Set the window size.
TakeScreenshot(TopLevelBrowsingContextId, Option<Rect<f32, CSSPixel>>, IpcSender<Option<Image>>)
Take a screenshot of the window.
NewWebView(IpcSender<TopLevelBrowsingContextId>, IpcSender<LoadStatus>)
Create a new webview that loads about:blank. The constellation will use the provided channels to return the top level browsing context id associated with the new webview, and a notification when the initial load is complete.
CloseWebView(TopLevelBrowsingContextId)
Close the webview associated with the provided id.
FocusWebView(TopLevelBrowsingContextId)
Focus the webview associated with the provided id.
Trait Implementations§
source§impl Debug for WebDriverCommandMsg
impl Debug for WebDriverCommandMsg
source§impl<'de> Deserialize<'de> for WebDriverCommandMsg
impl<'de> Deserialize<'de> for WebDriverCommandMsg
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for WebDriverCommandMsg
impl !RefUnwindSafe for WebDriverCommandMsg
impl Send for WebDriverCommandMsg
impl !Sync for WebDriverCommandMsg
impl Unpin for WebDriverCommandMsg
impl UnwindSafe for WebDriverCommandMsg
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
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