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```
4651php 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```
5160php local.php
5261```
0 commit comments