pub struct PartialConfig {
pub test_id_attribute: Option<String>,
pub default_hidden: Option<bool>,
pub default_ignore: Option<String>,
pub show_original_stack_trace: Option<bool>,
pub throw_suggestions: Option<bool>,
pub get_element_error: Option<Arc<GetElementErrorFn>>,
}
Fields§
§test_id_attribute: Option<String>
Default value for the hidden
option in by_role
queries.
default_ignore: Option<String>
Default value for the ignore
option in by_text
queries.
show_original_stack_trace: Option<bool>
Flag to show the full error stack traces for async errors.
throw_suggestions: Option<bool>
Throw errors with suggestions for better queries. Opt in so off by default.
get_element_error: Option<Arc<GetElementErrorFn>>
Implementations§
Source§impl PartialConfig
impl PartialConfig
pub fn test_id_attribute(self, value: String) -> Self
pub fn default_ignore(self, value: String) -> Self
pub fn show_original_stack_trace(self, value: bool) -> Self
pub fn throw_suggestions(self, value: bool) -> Self
pub fn get_element_error(self, value: Arc<GetElementErrorFn>) -> Self
Trait Implementations§
Source§impl Clone for PartialConfig
impl Clone for PartialConfig
Source§fn clone(&self) -> PartialConfig
fn clone(&self) -> PartialConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for PartialConfig
impl Default for PartialConfig
Source§fn default() -> PartialConfig
fn default() -> PartialConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PartialConfig
impl !RefUnwindSafe for PartialConfig
impl Send for PartialConfig
impl Sync for PartialConfig
impl Unpin for PartialConfig
impl !UnwindSafe for PartialConfig
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