Skip to content

Commit 63478c0

Browse files
authored
Update README.md
1 parent 8931708 commit 63478c0

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,30 @@ Getting Started with Appium tests in Java on BrowserStack couldn't be easier!
3131

3232
### For java-client 8.0.0 and above
3333

34-
NOTE : Any BrowserStack capability passed outside bstack:options will not be honoured \
34+
- Any BrowserStack capability passed outside bstack:options will not be honoured \
3535
[Browserstack Capability Builder](https://www.browserstack.com/app-automate/capabilities?tag=w3c)
3636

37+
- AppiumBy is available with java-client 8.0.0 . For java-client < 8.0.0, MobileBy can be used.
38+
39+
- WebDriverWait constructor requires time to be passed as a type Duration. So with java-client 8.0.0, pass wait time as a new Duration
40+
- java-client v-7.0.0
41+
```
42+
WebElement searchElement = (WebElement) new WebDriverWait(
43+
driver,
44+
30
45+
)
46+
```
47+
48+
java-client v-8.0.0
49+
```
50+
WebElement searchElement = (WebElement) new WebDriverWait(
51+
driver,
52+
Duration.ofSeconds(30)
53+
)
54+
```
55+
56+
Refer this for tracking changes in java-client 8.0.0 documentation - [v7-to-v8-migration-guide](https://github.com/appium/java-client/blob/master/docs/v7-to-v8-migration-guide.md#mobileelement)
57+
3758
### Run your first test :
3859
3960
**1. Upload your Android or iOS App**

0 commit comments

Comments
 (0)