pub enum WebDriverCommandMsg {
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>>),
}
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.
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert