Skip to content

Commit 02bd0cb

Browse files
authored
Update Documentation.en.md
1 parent 89dcc91 commit 02bd0cb

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Documentation.en.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,11 @@ String url = environment.getValue("/url").toString();
349349
```
350350
### **8. CONDITIONAL WAIT**
351351

352-
If you need to wait for any condition to be met, you can use the [ConditionalWait](./src/main/java/aquality/selenium/waitings/ConditionalWait.java) class provided by Aquality Selenium.
353-
All class methods wait for the condition to be met, but return values and handle exceptions ​​differently:
354-
1. ```waitForTrue``` - throws an exception if the condition is not met, returns nothing.
355-
2. ```boolean waitFor``` - returns true if the condition is fulfilled or false otherwise. Method does not throw any exception.
356-
3. ```<T> T waitFor``` - uses the WebDriver's wait, returns a T object or an exception if the condition is not met.
352+
If you need to wait for any condition to be met, you can use the IConditionalWait, which is implemented [here by default](https://github.com/aquality-automation/aquality-selenium-core-dotnet/blob/master/Aquality.Selenium.Core/src/Aquality.Selenium.Core/Waitings/ConditionalWait.cs). You are able to get this implementation by using following code:
353+
354+
``` AqualityServices.ConditionalWait ```
355+
356+
All class methods wait for the condition to be met, but return values and handle exceptions differently:
357+
1. ```public void WaitForTrue``` - throws an exception if the condition is not met, returns nothing. Note that the method doesn't use WebDriver's wait.
358+
2. ```bool WaitFor``` - returns true if the condition is fulfilled or false otherwise. Method does not throw any exception.
359+
3. ```public T WaitFor<T>``` - uses the WebDriver's wait, returns a T object or an exception if the condition is not met.

0 commit comments

Comments
 (0)