pub struct SelectOptionBuilder<'a> {
inner: Weak<Frame>,
args: SelectOptionArgs<'a>,
err: Option<Error>,
}Fields§
§inner: Weak<Frame>§args: SelectOptionArgs<'a>§err: Option<Error>Implementations§
Source§impl<'a> SelectOptionBuilder<'a>
impl<'a> SelectOptionBuilder<'a>
pub(crate) fn new(inner: Weak<Impl>, selector: &'a str) -> Self
pub async fn select_option(self) -> Result<Vec<String>, Arc<Error>>
pub fn add_element(self, x: &ElementHandle) -> Self
pub fn add_value(self, x: String) -> Self
pub fn add_index(self, x: usize) -> Self
pub fn add_label(self, x: String) -> Self
Sourcepub fn no_wait_after(self, x: bool) -> Self
pub fn no_wait_after(self, x: bool) -> Self
Actions that initiate navigations are waiting for these navigations to happen and for pages to start loading. You can
opt out of waiting via setting this flag. You would only need this option in the exceptional cases such as navigating to
inaccessible pages. Defaults to false.
pub fn timeout(self, x: f64) -> Self
pub fn clear_no_wait_after(self) -> Self
pub fn clear_timeout(self) -> Self
pub fn clear_elements(self) -> Self
pub fn clear_options(self) -> Self
Auto Trait Implementations§
impl<'a> Freeze for SelectOptionBuilder<'a>
impl<'a> !RefUnwindSafe for SelectOptionBuilder<'a>
impl<'a> Send for SelectOptionBuilder<'a>
impl<'a> Sync for SelectOptionBuilder<'a>
impl<'a> Unpin for SelectOptionBuilder<'a>
impl<'a> !UnwindSafe for SelectOptionBuilder<'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