Skip to content

Commit e2cf186

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

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,18 @@ Getting Started with Appium tests in Java on BrowserStack couldn't be easier!
3434
- 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.
37+
- AppiumBy is available with java-client 8.0.0 as MobileBy is depreceated . For java-client < 8.0.0, MobileBy can be used.
3838

3939
- 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
40+
**java-client v-7.0.0**
4141
```
42-
WebElement searchElement = (WebElement) new WebDriverWait(
43-
driver,
44-
30
45-
)
42+
WebElement searchElement = (WebElement) new WebDriverWait(driver, 30)
4643
```
4744
48-
java-client v-8.0.0
45+
**java-client v-8.0.0**
4946
```
50-
WebElement searchElement = (WebElement) new WebDriverWait(
51-
driver,
52-
Duration.ofSeconds(30)
53-
)
47+
import java.time.Duration;
48+
WebElement searchElement = (WebElement) new WebDriverWait(driver, Duration.ofSeconds(30))
5449
```
5550
5651
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)

0 commit comments

Comments
 (0)