Skip to content

Commit 71930ed

Browse files
committed
update readme.md
1 parent 652a912 commit 71930ed

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,16 @@
2828

2929
```php
3030
$caps = array(
31-
"browserName" => "iPhone",
32-
"device" => "iPhone 11",
33-
"realMobile" => "true",
34-
"os_version" => "14.0",
35-
"name" => "BStack-[Php] Sample Test", // test name
36-
"build" => "BStack Build Number 1" // CI/CD job or build name
31+
'bstack:options' => array(
32+
"os" => "OS X",
33+
"osVersion" => "Sierra",
34+
"buildName" => "Final-Snippet-Test",
35+
"sessionName" => "Selenium-4 PHP snippet test",
36+
"local" => "false",
37+
"seleniumVersion" => "4.0.0",
38+
),
39+
"browserName" => "Chrome",
40+
"browserVersion" => "latest",
3741
);
3842
// IMP: Use your browserstack username and accesskey
3943
$web_driver = RemoteWebDriver::create("https://USERNAME:[email protected]/wd/hub", $caps);
@@ -42,11 +46,16 @@ $web_driver = RemoteWebDriver::create("https://USERNAME:[email protected]
4246
## To run tests
4347
---
4448
### Single test
49+
Run single test session by running.
4550
```
4651
php single.php
4752
```
48-
49-
### Local test
53+
### Local test
54+
Run local test session by running.
55+
```php
56+
# Update "BROWSERSTACK_ACCESS_KEY" in bs_local.
57+
$bs_local_args = array("key" => "ACCESS_KEY");
58+
```
5059
```
5160
php local.php
5261
```

0 commit comments

Comments
 (0)