Skip to content

Commit b4ab1f4

Browse files
Update Page-objects.md
1 parent d9b806d commit b4ab1f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/Page-objects.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,12 @@ If time of the waiting for elements differs from usual (longer, or shorter when
305305

306306
```java
307307
import io.appium.java_client.pagefactory.*;
308+
import java.time.temporal.ChronoUnit;
308309

309-
@WithTimeout(timeOut = yourTime, timeUnit = yourTimeUnit)
310+
@WithTimeout(timeOut = yourTime, chronoUnit = yourTimeUnit)
310311
RemoteWebElement someElement;
311312

312-
@WithTimeout(timeOut = yourTime, timeUnit = yourTimeUnit)
313+
@WithTimeout(timeOut = yourTime, chronoUnit = yourTimeUnit)
313314
List<RemoteWebElement> someElements;
314315
```
315316

0 commit comments

Comments
 (0)