Skip to content

Commit 113f05e

Browse files
authored
Add documentation for WaitUntilUrlContains
1 parent b395323 commit 113f05e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,17 @@ using (var driver = new ChromeDriver())
6464
}
6565
```
6666

67+
### The `WaitUntilUrlContains` extension method
68+
69+
Periodically checks if the browser URL contains the passed string. If the URL does not match before the specified timeout occurs, a `TimeoutException` will be thrown.
70+
```csharp
71+
// Instanciate an IWebDriver
72+
using (var driver = new ChromeDriver())
73+
{
74+
// Will wait untill the URL becomes https://request.url using the default timeout (10s) and poll (.5s) time
75+
driver.WaitUntilUrlContains("/part/of/url?wololo=pouët");
76+
}
77+
```
78+
6779
### Legacy code
6880
The `ScrollTo` was made obsolete. Use `VerticalScrollTo` instead.

0 commit comments

Comments
 (0)