You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -80,16 +80,23 @@ Make sure you have your LambdaTest credentials with you to run test automation s
80
80
81
81
**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.
82
82
83
-
The capabilities object in the above code are defined as:
83
+
The capabilities in the below code are defined as:
84
84
85
85
```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)
93
100
```
94
101
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).
0 commit comments