Struct thirtyfour_query::ElementWaiter[][src]

pub struct ElementWaiter<'a> { /* fields omitted */ }

Implementations

impl<'a> ElementWaiter<'a>[src]

pub fn with_poller(self, poller: ElementPoller) -> Self[src]

Use the specified ElementPoller for this ElementWaiter. This will not affect the default ElementPoller used for other waits.

pub fn error(self, message: &str) -> Self[src]

Provide a human-readable error message to be returned in the case of timeout.

pub fn ignore_errors(self, ignore: bool) -> Self[src]

By default a waiter will ignore any errors that occur while polling for the desired condition(s). However, this behaviour can be modified so that the waiter will return early if an error is returned from thirtyfour.

pub fn wait(self, timeout: Duration, interval: Duration) -> Self[src]

Force this ElementWaiter to wait for the specified timeout, polling once after each interval. This will override the poller for this ElementWaiter only.

pub async fn condition(self, f: ElementPredicate) -> WebDriverResult<()>[src]

pub async fn conditions(
    self,
    conditions: Vec<ElementPredicate>
) -> WebDriverResult<()>
[src]

pub async fn stale(self) -> WebDriverResult<()>[src]

pub async fn displayed(self) -> WebDriverResult<()>[src]

pub async fn not_displayed(self) -> WebDriverResult<()>[src]

pub async fn selected(self) -> WebDriverResult<()>[src]

pub async fn not_selected(self) -> WebDriverResult<()>[src]

pub async fn enabled(self) -> WebDriverResult<()>[src]

pub async fn not_enabled(self) -> WebDriverResult<()>[src]

pub async fn clickable(self) -> WebDriverResult<()>[src]

pub async fn not_clickable(self) -> WebDriverResult<()>[src]

pub async fn has_class<N>(self, class_name: N) -> WebDriverResult<()> where
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_class<N>(self, class_name: N) -> WebDriverResult<()> where
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_text<N>(self, text: N) -> WebDriverResult<()> where
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_text<N>(self, text: N) -> WebDriverResult<()> where
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_value<N>(self, value: N) -> WebDriverResult<()> where
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_value<N>(self, value: N) -> WebDriverResult<()> where
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_attribute<S, N>(
    self,
    attribute_name: S,
    value: N
) -> WebDriverResult<()> where
    S: Into<String>,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_attribute<S, N>(
    self,
    attribute_name: S,
    value: N
) -> WebDriverResult<()> where
    S: Into<String>,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_attributes<S, N>(
    self,
    desired_attributes: &[(S, N)]
) -> WebDriverResult<()> where
    S: Into<String> + Clone,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_attributes<S, N>(
    self,
    desired_attributes: &[(S, N)]
) -> WebDriverResult<()> where
    S: Into<String> + Clone,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_property<S, N>(
    self,
    property_name: S,
    value: N
) -> WebDriverResult<()> where
    S: Into<String>,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_property<S, N>(
    self,
    property_name: S,
    value: N
) -> WebDriverResult<()> where
    S: Into<String>,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_properties<S, N>(
    self,
    desired_properties: &[(S, N)]
) -> WebDriverResult<()> where
    S: Into<String> + Clone,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_properties<S, N>(
    self,
    desired_properties: &[(S, N)]
) -> WebDriverResult<()> where
    S: Into<String> + Clone,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_css_property<S, N>(
    self,
    css_property_name: S,
    value: N
) -> WebDriverResult<()> where
    S: Into<String>,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_css_property<S, N>(
    self,
    css_property_name: S,
    value: N
) -> WebDriverResult<()> where
    S: Into<String>,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn has_css_properties<S, N>(
    self,
    desired_css_properties: &[(S, N)]
) -> WebDriverResult<()> where
    S: Into<String> + Clone,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

pub async fn lacks_css_properties<S, N>(
    self,
    desired_css_properties: &[(S, N)]
) -> WebDriverResult<()> where
    S: Into<String> + Clone,
    N: Needle + Clone + Send + Sync + 'static, 
[src]

Trait Implementations

impl<'a> Clone for ElementWaiter<'a>[src]

impl<'a> Debug for ElementWaiter<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ElementWaiter<'a>

impl<'a> Send for ElementWaiter<'a>

impl<'a> Sync for ElementWaiter<'a>

impl<'a> Unpin for ElementWaiter<'a>

impl<'a> !UnwindSafe for ElementWaiter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.