Struct thirtyfour_query::ElementWaiter [−][src]
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]
self,
conditions: Vec<ElementPredicate>
) -> WebDriverResult<()>
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]
N: Needle + Clone + Send + Sync + 'static,
pub async fn lacks_class<N>(self, class_name: N) -> WebDriverResult<()> where
N: Needle + Clone + Send + Sync + 'static,
[src]
N: Needle + Clone + Send + Sync + 'static,
pub async fn has_text<N>(self, text: N) -> WebDriverResult<()> where
N: Needle + Clone + Send + Sync + 'static,
[src]
N: Needle + Clone + Send + Sync + 'static,
pub async fn lacks_text<N>(self, text: N) -> WebDriverResult<()> where
N: Needle + Clone + Send + Sync + 'static,
[src]
N: Needle + Clone + Send + Sync + 'static,
pub async fn has_value<N>(self, value: N) -> WebDriverResult<()> where
N: Needle + Clone + Send + Sync + 'static,
[src]
N: Needle + Clone + Send + Sync + 'static,
pub async fn lacks_value<N>(self, value: N) -> WebDriverResult<()> where
N: Needle + Clone + Send + Sync + 'static,
[src]
N: Needle + Clone + Send + Sync + 'static,
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]
self,
attribute_name: S,
value: N
) -> WebDriverResult<()> where
S: Into<String>,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
attribute_name: S,
value: N
) -> WebDriverResult<()> where
S: Into<String>,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
desired_attributes: &[(S, N)]
) -> WebDriverResult<()> where
S: Into<String> + Clone,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
desired_attributes: &[(S, N)]
) -> WebDriverResult<()> where
S: Into<String> + Clone,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
property_name: S,
value: N
) -> WebDriverResult<()> where
S: Into<String>,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
property_name: S,
value: N
) -> WebDriverResult<()> where
S: Into<String>,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
desired_properties: &[(S, N)]
) -> WebDriverResult<()> where
S: Into<String> + Clone,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
desired_properties: &[(S, N)]
) -> WebDriverResult<()> where
S: Into<String> + Clone,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
css_property_name: S,
value: N
) -> WebDriverResult<()> where
S: Into<String>,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
css_property_name: S,
value: N
) -> WebDriverResult<()> where
S: Into<String>,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
desired_css_properties: &[(S, N)]
) -> WebDriverResult<()> where
S: Into<String> + Clone,
N: Needle + Clone + Send + Sync + 'static,
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]
self,
desired_css_properties: &[(S, N)]
) -> WebDriverResult<()> where
S: Into<String> + Clone,
N: Needle + Clone + Send + Sync + 'static,
Trait Implementations
impl<'a> Clone for ElementWaiter<'a>
[src]
fn clone(&self) -> ElementWaiter<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,