pub enum Command {
Show 63 variants
AcceptAlert,
AddCookie(Cookie),
CloseWindow,
DeleteCookie(String),
DeleteCookies,
DeleteSession,
DismissAlert,
ElementClear {
id: String,
},
ElementClick {
id: String,
},
ElementSendKeys {
id: String,
text: String,
value: Vec<String>,
},
ExecuteAsyncScript(Script),
ExecuteScript(Script),
FindElement(Locator),
FindElements(Locator),
FindShadowRootElement {
shadow_root: String,
using: Selector,
value: String,
},
FindShadowRootElements {
shadow_root: String,
using: Selector,
value: String,
},
FullscreenWindow,
Get(Url),
GetActiveElement,
GetAlertText,
GetComputedLabel {
id: String,
},
GetComputedRole {
id: String,
},
GetCookies,
GetCSSValue {
id: String,
property: String,
},
GetCurrentUrl,
GetElementAttribute {
id: String,
name: String,
},
GetElementProperty {
id: String,
name: String,
},
GetElementRect {
id: String,
},
GetElementTagName {
id: String,
},
GetElementText {
id: String,
},
GetPageSource,
GetShadowRoot {
id: String,
},
GetTimeouts,
GetTitle,
GetWindowHandle,
GetWindowHandles,
GetWindowRect,
GoBack,
GoForward,
IsDisplayed {
id: String,
},
IsEnabled {
id: String,
},
IsSelected {
id: String,
},
MaximizeWindow,
MinimizeWindow,
NewWindow(NewWindow),
Print(PrintParameters),
Refresh,
ReleaseActions,
SendAlertText(Keys),
SetPermission(SetPermissionParameters),
SetTimeouts(Timeouts),
SetWindowRect(WindowRect),
SwitchToFrame(Frame),
SwitchToParentFrame,
SwitchToWindow(Window),
TakeScreenshot(ScreenshotOptions),
WebAuthnAddVirtualAuthenticator(AuthenticatorParameters),
WebAuthnRemoveVirtualAuthenticator,
WebAuthnAddCredential(CredentialParameters),
WebAuthnGetCredentials,
WebAuthnRemoveCredential,
WebAuthnRemoveAllCredentials,
WebAuthnSetUserVerified(UserVerificationParameters),
}
Variants§
AcceptAlert
AddCookie(Cookie)
CloseWindow
DeleteCookie(String)
DeleteCookies
DeleteSession
DismissAlert
ElementClear
ElementClick
ElementSendKeys
ExecuteAsyncScript(Script)
ExecuteScript(Script)
FindElement(Locator)
FindElements(Locator)
FindShadowRootElement
FindShadowRootElements
FullscreenWindow
Get(Url)
GetActiveElement
GetAlertText
GetComputedLabel
GetComputedRole
GetCookies
GetCSSValue
GetCurrentUrl
GetElementAttribute
GetElementProperty
GetElementRect
GetElementTagName
GetElementText
GetPageSource
GetShadowRoot
GetTimeouts
GetTitle
GetWindowHandle
GetWindowHandles
GetWindowRect
GoBack
GoForward
IsDisplayed
IsEnabled
IsSelected
MaximizeWindow
MinimizeWindow
NewWindow(NewWindow)
Print(PrintParameters)
Refresh
ReleaseActions
SendAlertText(Keys)
SetPermission(SetPermissionParameters)
SetTimeouts(Timeouts)
SetWindowRect(WindowRect)
SwitchToFrame(Frame)
SwitchToParentFrame
SwitchToWindow(Window)
TakeScreenshot(ScreenshotOptions)
WebAuthnAddVirtualAuthenticator(AuthenticatorParameters)
WebAuthnRemoveVirtualAuthenticator
WebAuthnAddCredential(CredentialParameters)
WebAuthnGetCredentials
WebAuthnRemoveCredential
WebAuthnRemoveAllCredentials
WebAuthnSetUserVerified(UserVerificationParameters)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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