Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 61650c7

Browse files
committed
Extended @Waituntil documentation to include timeout configuration
1 parent 5a1c833 commit 61650c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

documentation/chapters/annotation-wait-until.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ and needs a default constructor to work!
1212

1313
> Collection and Streams are currently NOT supported!
1414
15+
A timeout can be configured by setting the `timeout` and `unit` properties of the annotation.
16+
If no custom timeout is set the host browser's configuration defaults are used.
17+
1518
**Example for page:**
1619
```java
1720
public interface FooPage extends Page {
@@ -33,7 +36,7 @@ public interface FooWidget extends PageFragment {
3336
@IdentifyUsing("#one")
3437
TextField fieldOne();
3538

36-
@WaitUntil(Visible.class)
39+
@WaitUntil(value=Visible.class, timeout=500, unit=TimeUnit.MILLISECONDS)
3740
@IdentifyUsing("#two")
3841
TextField fieldTwo();
3942

0 commit comments

Comments
 (0)