Skip to content

Commit 457eba8

Browse files
committed
Update query documentation
1 parent 93ace1f commit 457eba8

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

src/query/mod.rs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,11 @@
7676
//! it's probably best to execute multiple queries.
7777
//!
7878
//! All timeout, interval and ElementPoller details can be overridden on a per-call basis if
79-
//! desired. See the `ElementQuery` documentation for more details.
79+
//! desired. See the [ElementQuery](struct.ElementQuery.html) documentation for more details.
8080
//!
8181
//! ### ElementWaiter
8282
//!
83-
//! First, import the following:
84-
//! ```ignore
85-
//! use thirtyfour::query::{ElementPoller, ElementWaitable};
86-
//! ```
87-
//!
88-
//! Now you can do things like this:
83+
//! With `ElementWaiter` you can do things like this:
8984
//! ```ignore
9085
//! elem.wait_until().displayed().await?;
9186
//! // You can optionally provide a nicer error message like this.
@@ -95,9 +90,10 @@
9590
//! elem.wait_until().clickable().await?;
9691
//! ```
9792
//!
98-
//! And so on. See the `ElementWaiter` docs for the full list of predicates available.
93+
//! And so on. See the [ElementWaiter](struct.ElementWaiter.html) docs for the full
94+
//! list of predicates available.
9995
//!
100-
//! ElementWaiter also allows the user of custom predicates that take a `&WebElement` argument
96+
//! `ElementWaiter` also allows the user of custom predicates that take a `&WebElement` argument
10197
//! and return a `WebDriverResult<bool>`.
10298
//!
10399
//! A range of pre-defined predicates are also supplied for convenience in the
@@ -121,7 +117,7 @@
121117
//! You can optionally change the default polling behaviour. The same poller will apply to
122118
//! both `ElementQuery` and `ElementWaiter`.
123119
//!
124-
//! See [ElementPoller::default()](query/enum.ElementPoller.html#impl-Default) for more details
120+
//! See [ElementPoller::default()](enum.ElementPoller.html#impl-Default) for more details
125121
//! about the default polling behaviour.
126122
//! ```rust
127123
//! # use thirtyfour::prelude::*;
@@ -141,7 +137,7 @@
141137
//! # }
142138
//! ```
143139
//!
144-
//! Other [ElementPoller](query/enum.ElementPoller.html) options are also available, such as
140+
//! Other [ElementPoller](enum.ElementPoller.html) options are also available, such as
145141
//! `NoWait` and `NumTriesWithInterval`.
146142
//! These can also be overridden on a per-query basis if needed.
147143
//!

0 commit comments

Comments
 (0)