Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
innovater21 authored Mar 16, 2022
commit e2cf186e323047c4e5461c3d0eb187d03a565258
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,18 @@ Getting Started with Appium tests in Java on BrowserStack couldn't be easier!
- Any BrowserStack capability passed outside bstack:options will not be honoured \
[Browserstack Capability Builder](https://www.browserstack.com/app-automate/capabilities?tag=w3c)

- AppiumBy is available with java-client 8.0.0 . For java-client < 8.0.0, MobileBy can be used.
- AppiumBy is available with java-client 8.0.0 as MobileBy is depreceated . For java-client < 8.0.0, MobileBy can be used.

- 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
- java-client v-7.0.0
**java-client v-7.0.0**
```
WebElement searchElement = (WebElement) new WebDriverWait(
driver,
30
)
WebElement searchElement = (WebElement) new WebDriverWait(driver, 30)
```

java-client v-8.0.0
**java-client v-8.0.0**
```
WebElement searchElement = (WebElement) new WebDriverWait(
driver,
Duration.ofSeconds(30)
)
import java.time.Duration;
WebElement searchElement = (WebElement) new WebDriverWait(driver, Duration.ofSeconds(30))
```

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)
Expand Down