Skip to content

Commit 8a9b1d8

Browse files
authored
Update README.md
1 parent c81def1 commit 8a9b1d8

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,22 @@ Make sure you have your LambdaTest credentials with you to run test automation s
8181
**Step 4:** In the python script, you need to update your test capabilities. In this code, we are passing browser, browser version, and operating system information, along with LambdaTest Selenium grid capabilities via capabilities object.
8282

8383
The capabilities object in the above code are defined as:
84-
84+
You can change the desired capibilite's
8585
```python
86-
capabilities = {
87-
"build": "your build name",
88-
"name": "your test name",
89-
"platformName": "Windows 10"
90-
"browserName": "Chrome",
91-
"browserVersion": "latest",
92-
}
86+
options = ChromeOptions()
87+
options.browser_version = "114.0"
88+
options.platform_name = "macOS High Sierra"
89+
lt_options = {}
90+
lt_options["video"] = True
91+
lt_options["resolution"] = "1920x1080"
92+
lt_options["network"] = True
93+
lt_options["build"] = "test_build"
94+
lt_options["project"] = "unit_testing"
95+
lt_options["smartUI.project"] = "test"
96+
lt_options["name"] = "basic_unit_selinium"
97+
lt_options["w3c"] = True
98+
lt_options["plugin"] = "python-python"
99+
options.set_capability('LT:Options', lt_options)
93100
```
94101
You can generate capabilities for your test requirements with the help of our inbuilt [Desired Capability Generator](https://www.lambdatest.com/capabilities-generator/?utm_source=github&utm_medium=repo&utm_campaign=python-selenium-sample).
95102

0 commit comments

Comments
 (0)