pub enum BrowserStep {
Show 62 variants
Navigate {
url: String,
expected_status: Option<u16>,
timeout_ms: Option<u64>,
optional: bool,
},
NavigateBack {
timeout_ms: Option<u64>,
optional: bool,
},
NavigateForward {
timeout_ms: Option<u64>,
optional: bool,
},
Reload {
timeout_ms: Option<u64>,
optional: bool,
},
Snapshot {
timeout_ms: Option<u64>,
optional: bool,
},
Screenshot {
path: Option<String>,
type: Option<String>,
full_page: bool,
ref: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
ConsoleMessages {
level: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
ConsoleClear {
optional: bool,
},
NetworkRequests {
include_static: bool,
optional: bool,
},
NetworkClear {
optional: bool,
},
Click {
ref: Option<String>,
selector: Option<String>,
double_click: bool,
timeout_ms: Option<u64>,
optional: bool,
},
Hover {
ref: Option<String>,
selector: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
Drag {
start_ref: Option<String>,
start_selector: Option<String>,
end_ref: Option<String>,
end_selector: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
Fill {
ref: Option<String>,
selector: Option<String>,
text: String,
submit: Option<bool>,
timeout_ms: Option<u64>,
optional: bool,
},
FillForm {
fields: Vec<Value>,
timeout_ms: Option<u64>,
optional: bool,
},
SelectOption {
ref: Option<String>,
selector: Option<String>,
values: Vec<String>,
timeout_ms: Option<u64>,
optional: bool,
},
PressKey {
key: String,
timeout_ms: Option<u64>,
optional: bool,
},
Check {
ref: Option<String>,
selector: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
Uncheck {
ref: Option<String>,
selector: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
MouseMove {
x: f64,
y: f64,
optional: bool,
},
MouseClick {
x: f64,
y: f64,
button: Option<String>,
optional: bool,
},
MouseDrag {
start_x: f64,
start_y: f64,
end_x: f64,
end_y: f64,
optional: bool,
},
MouseDown {
button: Option<String>,
optional: bool,
},
MouseUp {
button: Option<String>,
optional: bool,
},
MouseWheel {
delta_x: f64,
delta_y: f64,
optional: bool,
},
WaitFor {
time: Option<f64>,
text: Option<String>,
text_gone: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
VerifyElementVisible {
role: Option<String>,
accessible_name: Option<String>,
optional: bool,
},
VerifyTextVisible {
text: String,
optional: bool,
},
VerifyListVisible {
ref: Option<String>,
items: Vec<String>,
optional: bool,
},
VerifyValue {
ref: Option<String>,
value: String,
optional: bool,
},
Evaluate {
function: String,
ref: Option<String>,
timeout_ms: Option<u64>,
optional: bool,
},
RunCode {
code: String,
timeout_ms: Option<u64>,
optional: bool,
},
Tabs {
operation: String,
index: Option<usize>,
optional: bool,
},
Resize {
width: u32,
height: u32,
optional: bool,
},
Close {
optional: bool,
},
Route {
pattern: String,
status: Option<u16>,
body: Option<String>,
content_type: Option<String>,
optional: bool,
},
RouteList {
optional: bool,
},
Unroute {
pattern: String,
optional: bool,
},
CookieList {
domain: Option<String>,
optional: bool,
},
CookieGet {
name: String,
optional: bool,
},
CookieSet {
name: String,
value: String,
domain: Option<String>,
path: Option<String>,
expires: Option<f64>,
http_only: bool,
secure: bool,
optional: bool,
},
CookieDelete {
name: String,
optional: bool,
},
CookieClear {
optional: bool,
},
LocalStorageGet {
key: String,
optional: bool,
},
LocalStorageSet {
key: String,
value: String,
optional: bool,
},
LocalStorageDelete {
key: String,
optional: bool,
},
LocalStorageClear {
optional: bool,
},
SessionStorageGet {
key: String,
optional: bool,
},
SessionStorageSet {
key: String,
value: String,
optional: bool,
},
SessionStorageDelete {
key: String,
optional: bool,
},
SessionStorageClear {
optional: bool,
},
StorageState {
path: Option<String>,
optional: bool,
},
SetStorageState {
path: String,
optional: bool,
},
FileUpload {
paths: Vec<String>,
timeout_ms: Option<u64>,
optional: bool,
},
HandleDialog {
accept: bool,
prompt_text: Option<String>,
optional: bool,
},
Download {
save_to: String,
timeout_ms: Option<u64>,
optional: bool,
},
PdfSave {
path: Option<String>,
optional: bool,
},
StartVideo {
width: Option<u32>,
height: Option<u32>,
optional: bool,
},
StopVideo {
path: Option<String>,
optional: bool,
},
StartTracing {
optional: bool,
},
StopTracing {
path: Option<String>,
optional: bool,
},
GenerateLocator {
ref: String,
optional: bool,
},
}Variants§
Reload
Snapshot
Screenshot
Fields
ConsoleMessages
ConsoleClear
NetworkRequests
NetworkClear
Click
Fields
Hover
Drag
Fields
Fill
Fields
FillForm
SelectOption
Fields
PressKey
Check
Uncheck
MouseMove
MouseClick
MouseDrag
MouseDown
MouseUp
MouseWheel
WaitFor
Fields
VerifyElementVisible
VerifyTextVisible
VerifyListVisible
VerifyValue
Evaluate
RunCode
Tabs
Resize
Close
Route
Fields
RouteList
Unroute
CookieList
CookieGet
CookieSet
Fields
CookieDelete
CookieClear
LocalStorageGet
LocalStorageSet
LocalStorageDelete
LocalStorageClear
SessionStorageGet
SessionStorageSet
SessionStorageDelete
SessionStorageClear
StorageState
SetStorageState
FileUpload
HandleDialog
Download
PdfSave
StartVideo
StopVideo
StartTracing
StopTracing
GenerateLocator
Implementations§
Source§impl BrowserStep
impl BrowserStep
pub fn action_name(&self) -> &'static str
pub fn is_optional(&self) -> bool
pub fn timeout_ms(&self, global: u64) -> u64
Trait Implementations§
Source§impl Archive for BrowserStep
impl Archive for BrowserStep
Source§type Archived = ArchivedBrowserStep
type Archived = ArchivedBrowserStep
The archived representation of this type. Read more
Source§type Resolver = BrowserStepResolver
type Resolver = BrowserStepResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
Source§fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
Source§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moreSource§impl Clone for BrowserStep
impl Clone for BrowserStep
Source§fn clone(&self) -> BrowserStep
fn clone(&self) -> BrowserStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserStep
impl Debug for BrowserStep
Source§impl<'de> Deserialize<'de> for BrowserStep
impl<'de> Deserialize<'de> for BrowserStep
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
Source§impl<__D: Fallible + ?Sized> Deserialize<BrowserStep, __D> for Archived<BrowserStep>where
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
Option<u16>: Archive,
<Option<u16> as Archive>::Archived: Deserialize<Option<u16>, __D>,
Option<u64>: Archive,
<Option<u64> as Archive>::Archived: Deserialize<Option<u64>, __D>,
bool: Archive,
<bool as Archive>::Archived: Deserialize<bool, __D>,
Option<String>: Archive,
<Option<String> as Archive>::Archived: Deserialize<Option<String>, __D>,
Option<bool>: Archive,
<Option<bool> as Archive>::Archived: Deserialize<Option<bool>, __D>,
AsJson: ArchiveWith<Vec<Value>> + DeserializeWith<<AsJson as ArchiveWith<Vec<Value>>>::Archived, Vec<Value>, __D>,
Vec<String>: Archive,
<Vec<String> as Archive>::Archived: Deserialize<Vec<String>, __D>,
f64: Archive,
<f64 as Archive>::Archived: Deserialize<f64, __D>,
Option<f64>: Archive,
<Option<f64> as Archive>::Archived: Deserialize<Option<f64>, __D>,
Option<usize>: Archive,
<Option<usize> as Archive>::Archived: Deserialize<Option<usize>, __D>,
u32: Archive,
<u32 as Archive>::Archived: Deserialize<u32, __D>,
Option<u32>: Archive,
<Option<u32> as Archive>::Archived: Deserialize<Option<u32>, __D>,
impl<__D: Fallible + ?Sized> Deserialize<BrowserStep, __D> for Archived<BrowserStep>where
String: Archive,
<String as Archive>::Archived: Deserialize<String, __D>,
Option<u16>: Archive,
<Option<u16> as Archive>::Archived: Deserialize<Option<u16>, __D>,
Option<u64>: Archive,
<Option<u64> as Archive>::Archived: Deserialize<Option<u64>, __D>,
bool: Archive,
<bool as Archive>::Archived: Deserialize<bool, __D>,
Option<String>: Archive,
<Option<String> as Archive>::Archived: Deserialize<Option<String>, __D>,
Option<bool>: Archive,
<Option<bool> as Archive>::Archived: Deserialize<Option<bool>, __D>,
AsJson: ArchiveWith<Vec<Value>> + DeserializeWith<<AsJson as ArchiveWith<Vec<Value>>>::Archived, Vec<Value>, __D>,
Vec<String>: Archive,
<Vec<String> as Archive>::Archived: Deserialize<Vec<String>, __D>,
f64: Archive,
<f64 as Archive>::Archived: Deserialize<f64, __D>,
Option<f64>: Archive,
<Option<f64> as Archive>::Archived: Deserialize<Option<f64>, __D>,
Option<usize>: Archive,
<Option<usize> as Archive>::Archived: Deserialize<Option<usize>, __D>,
u32: Archive,
<u32 as Archive>::Archived: Deserialize<u32, __D>,
Option<u32>: Archive,
<Option<u32> as Archive>::Archived: Deserialize<Option<u32>, __D>,
Source§fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<BrowserStep, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<BrowserStep, <__D as Fallible>::Error>
Deserializes using the given deserializer
Source§impl Serialize for BrowserStep
impl Serialize for BrowserStep
Source§impl<__S: Fallible + ?Sized> Serialize<__S> for BrowserStepwhere
String: Serialize<__S>,
Option<u16>: Serialize<__S>,
Option<u64>: Serialize<__S>,
bool: Serialize<__S>,
Option<String>: Serialize<__S>,
Option<bool>: Serialize<__S>,
AsJson: SerializeWith<Vec<Value>, __S>,
Vec<String>: Serialize<__S>,
f64: Serialize<__S>,
Option<f64>: Serialize<__S>,
Option<usize>: Serialize<__S>,
u32: Serialize<__S>,
Option<u32>: Serialize<__S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for BrowserStepwhere
String: Serialize<__S>,
Option<u16>: Serialize<__S>,
Option<u64>: Serialize<__S>,
bool: Serialize<__S>,
Option<String>: Serialize<__S>,
Option<bool>: Serialize<__S>,
AsJson: SerializeWith<Vec<Value>, __S>,
Vec<String>: Serialize<__S>,
f64: Serialize<__S>,
Option<f64>: Serialize<__S>,
Option<usize>: Serialize<__S>,
u32: Serialize<__S>,
Option<u32>: Serialize<__S>,
Auto Trait Implementations§
impl Freeze for BrowserStep
impl RefUnwindSafe for BrowserStep
impl Send for BrowserStep
impl Sync for BrowserStep
impl Unpin for BrowserStep
impl UnsafeUnpin for BrowserStep
impl UnwindSafe for BrowserStep
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Source§impl<T> ArchiveUnsized for Twhere
T: Archive,
impl<T> ArchiveUnsized for Twhere
T: Archive,
Source§type Archived = <T as Archive>::Archived
type Archived = <T as Archive>::Archived
The archived counterpart of this type. Unlike
Archive, it may be
unsized. Read moreSource§fn archived_metadata(
&self,
) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata
Creates the archived version of the metadata for this value.
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.