openBrowser
Mở một URL trong trình duyệt của device.
Command openBrowser mở một URL trong trình duyệt mặc định của device. Để mở link trong app của bạn hoặc xử lý deep link, dùng openLink.
Cú pháp
yaml
- openBrowser: https://example.com
# hoặc
- openBrowser:
url: https://example.comTham số
| Tham số | Kiểu | Mô tả |
|---|---|---|
url | String | Bắt buộc. URL cần mở. |
Hành vi theo nền tảng
- Android: bắt đầu một intent
VIEWcho URL (am start -a android.intent.action.VIEW). - iOS: mở URL trên device qua WebDriverAgent.
URL rỗng làm step fail.
