Skip to main content

BrowserStep

Enum BrowserStep 

Source
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§

§

Navigate

Fields

§expected_status: Option<u16>
§timeout_ms: Option<u64>
§optional: bool
§

NavigateBack

Fields

§timeout_ms: Option<u64>
§optional: bool
§

NavigateForward

Fields

§timeout_ms: Option<u64>
§optional: bool
§

Reload

Fields

§timeout_ms: Option<u64>
§optional: bool
§

Snapshot

Fields

§timeout_ms: Option<u64>
§optional: bool
§

Screenshot

Fields

§full_page: bool
§timeout_ms: Option<u64>
§optional: bool
§

ConsoleMessages

Fields

§timeout_ms: Option<u64>
§optional: bool
§

ConsoleClear

Fields

§optional: bool
§

NetworkRequests

Fields

§include_static: bool
§optional: bool
§

NetworkClear

Fields

§optional: bool
§

Click

Fields

§selector: Option<String>
§double_click: bool
§timeout_ms: Option<u64>
§optional: bool
§

Hover

Fields

§selector: Option<String>
§timeout_ms: Option<u64>
§optional: bool
§

Drag

Fields

§start_ref: Option<String>
§start_selector: Option<String>
§end_ref: Option<String>
§end_selector: Option<String>
§timeout_ms: Option<u64>
§optional: bool
§

Fill

Fields

§selector: Option<String>
§text: String
§submit: Option<bool>
§timeout_ms: Option<u64>
§optional: bool
§

FillForm

Fields

§fields: Vec<Value>
§timeout_ms: Option<u64>
§optional: bool
§

SelectOption

Fields

§selector: Option<String>
§values: Vec<String>
§timeout_ms: Option<u64>
§optional: bool
§

PressKey

Fields

§timeout_ms: Option<u64>
§optional: bool
§

Check

Fields

§selector: Option<String>
§timeout_ms: Option<u64>
§optional: bool
§

Uncheck

Fields

§selector: Option<String>
§timeout_ms: Option<u64>
§optional: bool
§

MouseMove

Fields

§optional: bool
§

MouseClick

Fields

§button: Option<String>
§optional: bool
§

MouseDrag

Fields

§start_x: f64
§start_y: f64
§end_x: f64
§end_y: f64
§optional: bool
§

MouseDown

Fields

§button: Option<String>
§optional: bool
§

MouseUp

Fields

§button: Option<String>
§optional: bool
§

MouseWheel

Fields

§delta_x: f64
§delta_y: f64
§optional: bool
§

WaitFor

Fields

§time: Option<f64>
§text_gone: Option<String>
§timeout_ms: Option<u64>
§optional: bool
§

VerifyElementVisible

Fields

§accessible_name: Option<String>
§optional: bool
§

VerifyTextVisible

Fields

§text: String
§optional: bool
§

VerifyListVisible

Fields

§items: Vec<String>
§optional: bool
§

VerifyValue

Fields

§value: String
§optional: bool
§

Evaluate

Fields

§function: String
§timeout_ms: Option<u64>
§optional: bool
§

RunCode

Fields

§code: String
§timeout_ms: Option<u64>
§optional: bool
§

Tabs

Fields

§operation: String
§index: Option<usize>
§optional: bool
§

Resize

Fields

§width: u32
§height: u32
§optional: bool
§

Close

Fields

§optional: bool
§

Route

Fields

§pattern: String
§status: Option<u16>
§content_type: Option<String>
§optional: bool
§

RouteList

Fields

§optional: bool
§

Unroute

Fields

§pattern: String
§optional: bool
§

CookieList

Fields

§domain: Option<String>
§optional: bool
§

CookieGet

Fields

§name: String
§optional: bool
§

CookieSet

Fields

§name: String
§value: String
§domain: Option<String>
§expires: Option<f64>
§http_only: bool
§secure: bool
§optional: bool
§

CookieDelete

Fields

§name: String
§optional: bool
§

CookieClear

Fields

§optional: bool
§

LocalStorageGet

Fields

§optional: bool
§

LocalStorageSet

Fields

§value: String
§optional: bool
§

LocalStorageDelete

Fields

§optional: bool
§

LocalStorageClear

Fields

§optional: bool
§

SessionStorageGet

Fields

§optional: bool
§

SessionStorageSet

Fields

§value: String
§optional: bool
§

SessionStorageDelete

Fields

§optional: bool
§

SessionStorageClear

Fields

§optional: bool
§

StorageState

Fields

§optional: bool
§

SetStorageState

Fields

§path: String
§optional: bool
§

FileUpload

Fields

§paths: Vec<String>
§timeout_ms: Option<u64>
§optional: bool
§

HandleDialog

Fields

§accept: bool
§prompt_text: Option<String>
§optional: bool
§

Download

Fields

§save_to: String
§timeout_ms: Option<u64>
§optional: bool
§

PdfSave

Fields

§optional: bool
§

StartVideo

Fields

§width: Option<u32>
§height: Option<u32>
§optional: bool
§

StopVideo

Fields

§optional: bool
§

StartTracing

Fields

§optional: bool
§

StopTracing

Fields

§optional: bool
§

GenerateLocator

Fields

§optional: bool

Implementations§

Source§

impl BrowserStep

Source

pub fn action_name(&self) -> &'static str

Source

pub fn is_optional(&self) -> bool

Source

pub fn timeout_ms(&self, global: u64) -> u64

Trait Implementations§

Source§

impl Archive for BrowserStep

Source§

type Archived = ArchivedBrowserStep

The archived representation of this type. Read more
Source§

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>, )

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> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more
Source§

impl Clone for BrowserStep

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for BrowserStep

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for BrowserStep

Source§

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>

Source§

fn deserialize( &self, deserializer: &mut __D, ) -> Result<BrowserStep, <__D as Fallible>::Error>

Deserializes using the given deserializer
Source§

impl Serialize for BrowserStep

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<__S: Fallible + ?Sized> Serialize<__S> for BrowserStep

Source§

fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

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 T
where T: Archive,

Source§

type Archived = <T as Archive>::Archived

The archived counterpart of this type. Unlike Archive, it may be unsized. Read more
Source§

fn archived_metadata( &self, ) -> <<T as ArchiveUnsized>::Archived as ArchivePointee>::ArchivedMetadata

Creates the archived version of the metadata for this value.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> LayoutRaw for T

Source§

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
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

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>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SerializeUnsized<S> for T
where T: Serialize<S>, S: Fallible + Writer + ?Sized,

Source§

fn serialize_unsized( &self, serializer: &mut S, ) -> Result<usize, <S as Fallible>::Error>

Writes the object and returns the position of the archived type.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more