pub struct SelectOptionBuilder<'l, 'a> { /* private fields */ }Expand description
Builder for select option operations with configurable options.
Created via Locator::select_option.
Implementations§
Source§impl<'l, 'a> SelectOptionBuilder<'l, 'a>
impl<'l, 'a> SelectOptionBuilder<'l, 'a>
Sourcepub fn value(self, option: impl Into<String>) -> Self
pub fn value(self, option: impl Into<String>) -> Self
Set a single option to select by value or label.
Sourcepub fn label(self, label: impl Into<String>) -> Self
pub fn label(self, label: impl Into<String>) -> Self
Set a single option to select by label text.
Sourcepub fn values(self, options: &[&str]) -> Self
pub fn values(self, options: &[&str]) -> Self
Set multiple options to select (for multi-select elements).
Sourcepub fn no_wait_after(self, no_wait_after: bool) -> Self
pub fn no_wait_after(self, no_wait_after: bool) -> Self
Whether to skip waiting for navigation after the selection.
Sourcepub async fn send(self) -> Result<(), LocatorError>
pub async fn send(self) -> Result<(), LocatorError>
Execute the select operation.
Trait Implementations§
Source§impl<'l, 'a> Debug for SelectOptionBuilder<'l, 'a>
impl<'l, 'a> Debug for SelectOptionBuilder<'l, 'a>
Source§impl<'l> IntoFuture for SelectOptionBuilder<'l, '_>
impl<'l> IntoFuture for SelectOptionBuilder<'l, '_>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <SelectOptionBuilder<'l, '_> as IntoFuture>::Output> + Send + 'l>>
type IntoFuture = Pin<Box<dyn Future<Output = <SelectOptionBuilder<'l, '_> as IntoFuture>::Output> + Send + 'l>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'l, 'a> Freeze for SelectOptionBuilder<'l, 'a>
impl<'l, 'a> !RefUnwindSafe for SelectOptionBuilder<'l, 'a>
impl<'l, 'a> Send for SelectOptionBuilder<'l, 'a>
impl<'l, 'a> Sync for SelectOptionBuilder<'l, 'a>
impl<'l, 'a> Unpin for SelectOptionBuilder<'l, 'a>
impl<'l, 'a> !UnwindSafe for SelectOptionBuilder<'l, 'a>
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