pub struct SelectOptionBuilder {
inner: Weak<ElementHandle>,
args: SelectOptionArgs,
err: Option<Error>,
}Fields§
§inner: Weak<ElementHandle>§args: SelectOptionArgs§err: Option<Error>Implementations§
Source§impl SelectOptionBuilder
impl SelectOptionBuilder
pub(crate) fn new(inner: Weak<Impl>) -> 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 Freeze for SelectOptionBuilder
impl !RefUnwindSafe for SelectOptionBuilder
impl Send for SelectOptionBuilder
impl Sync for SelectOptionBuilder
impl Unpin for SelectOptionBuilder
impl !UnwindSafe for SelectOptionBuilder
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