pub enum Command {
Show 61 variants
NewSession(Value),
DeleteSession,
Status,
GetTimeouts,
SetTimeouts(TimeoutConfiguration),
NavigateTo(Arc<str>),
GetCurrentUrl,
Back,
Forward,
Refresh,
GetTitle,
GetWindowHandle,
CloseWindow,
SwitchToWindow(WindowHandle),
GetWindowHandles,
NewWindow,
NewTab,
SwitchToFrameDefault,
SwitchToFrameNumber(u16),
SwitchToFrameElement(ElementId),
SwitchToParentFrame,
GetWindowRect,
SetWindowRect(OptionRect),
MaximizeWindow,
MinimizeWindow,
FullscreenWindow,
GetActiveElement,
FindElement(Selector),
FindElements(Selector),
FindElementFromElement(ElementId, Selector),
FindElementsFromElement(ElementId, Selector),
IsElementSelected(ElementId),
IsElementDisplayed(ElementId),
GetElementAttribute(ElementId, Arc<str>),
GetElementProperty(ElementId, Arc<str>),
GetElementCssValue(ElementId, Arc<str>),
GetElementText(ElementId),
GetElementTagName(ElementId),
GetElementRect(ElementId),
IsElementEnabled(ElementId),
ElementClick(ElementId),
ElementClear(ElementId),
ElementSendKeys(ElementId, TypingData),
GetPageSource,
ExecuteScript(Arc<str>, Arc<[Value]>),
ExecuteAsyncScript(Arc<str>, Arc<[Value]>),
GetAllCookies,
GetNamedCookie(Arc<str>),
AddCookie(Cookie),
DeleteCookie(Arc<str>),
DeleteAllCookies,
PerformActions(Actions),
ReleaseActions,
DismissAlert,
AcceptAlert,
GetAlertText,
SendAlertText(TypingData),
PrintPage(PrintParameters),
TakeScreenshot,
TakeElementScreenshot(ElementId),
ExtensionCommand(Box<dyn ExtensionCommand + Send + Sync>),
}Expand description
All the standard WebDriver commands.
Variants§
NewSession(Value)
DeleteSession
Status
GetTimeouts
SetTimeouts(TimeoutConfiguration)
GetCurrentUrl
Back
Forward
Refresh
GetTitle
GetWindowHandle
CloseWindow
SwitchToWindow(WindowHandle)
GetWindowHandles
NewWindow
NewTab
SwitchToFrameDefault
SwitchToFrameNumber(u16)
SwitchToFrameElement(ElementId)
SwitchToParentFrame
GetWindowRect
SetWindowRect(OptionRect)
MaximizeWindow
MinimizeWindow
FullscreenWindow
GetActiveElement
FindElement(Selector)
FindElements(Selector)
FindElementFromElement(ElementId, Selector)
FindElementsFromElement(ElementId, Selector)
IsElementSelected(ElementId)
IsElementDisplayed(ElementId)
GetElementAttribute(ElementId, Arc<str>)
GetElementProperty(ElementId, Arc<str>)
GetElementCssValue(ElementId, Arc<str>)
GetElementText(ElementId)
GetElementTagName(ElementId)
GetElementRect(ElementId)
IsElementEnabled(ElementId)
ElementClick(ElementId)
ElementClear(ElementId)
ElementSendKeys(ElementId, TypingData)
GetPageSource
ExecuteScript(Arc<str>, Arc<[Value]>)
ExecuteAsyncScript(Arc<str>, Arc<[Value]>)
GetAllCookies
GetNamedCookie(Arc<str>)
AddCookie(Cookie)
DeleteCookie(Arc<str>)
DeleteAllCookies
PerformActions(Actions)
ReleaseActions
DismissAlert
AcceptAlert
GetAlertText
SendAlertText(TypingData)
PrintPage(PrintParameters)
TakeScreenshot
TakeElementScreenshot(ElementId)
ExtensionCommand(Box<dyn ExtensionCommand + Send + Sync>)
Trait Implementations§
Source§impl FormatRequestData for Command
impl FormatRequestData for Command
Source§fn format_request(&self, session_id: &SessionId) -> RequestData
fn format_request(&self, session_id: &SessionId) -> RequestData
Format the command into a
RequestData struct.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