pub enum Expectation {
DownloadStarted,
Focused {
target: LocatorSpec,
},
Url {
value: String,
contains: bool,
},
Visible {
target: LocatorSpec,
},
Hidden {
target: LocatorSpec,
},
Text {
target: LocatorSpec,
value: String,
contains: bool,
},
Value {
target: LocatorSpec,
value: String,
},
Checked {
target: LocatorSpec,
checked: bool,
},
Selected {
target: LocatorSpec,
values: Vec<String>,
},
}Expand description
An observable completion condition. Values are not copied into receipts.
Variants§
DownloadStarted
Observe a new native download originating from this page.
Focused
Wait for a target to hold focus.
Fields
§
target: LocatorSpecTarget that must receive focus.
Url
Wait for the page URL.
Fields
Visible
Wait for a rendered target.
Fields
§
target: LocatorSpecLocator resolved at execution time.
Hidden
Wait for a target to disappear or stop rendering.
Fields
§
target: LocatorSpecLocator resolved at execution time.
Text
Match element text.
Fields
§
target: LocatorSpecLocator resolved at execution time.
Value
Wait for a form value.
Fields
§
target: LocatorSpecLocator resolved at execution time.
Checked
Wait for a checked state.
Selected
Wait for selected option values.
Fields
§
target: LocatorSpecLocator resolved at execution time.
Implementations§
Trait Implementations§
Source§impl Clone for Expectation
impl Clone for Expectation
Source§fn clone(&self) -> Expectation
fn clone(&self) -> Expectation
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 Expectation
impl Debug for Expectation
Source§impl<'de> Deserialize<'de> for Expectation
impl<'de> Deserialize<'de> for Expectation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Expectation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Expectation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Expectation
Source§impl JsonSchema for Expectation
impl JsonSchema for Expectation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Expectation
impl PartialEq for Expectation
Source§impl Serialize for Expectation
impl Serialize for Expectation
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Expectation
Auto Trait Implementations§
impl Freeze for Expectation
impl RefUnwindSafe for Expectation
impl Send for Expectation
impl Sync for Expectation
impl Unpin for Expectation
impl UnsafeUnpin for Expectation
impl UnwindSafe for Expectation
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