How can I pass Selenium 4 capabilities in Python Unittest?
Hi Yanisleidi!
To pass Selenium 4 capabilities in your Python Unittest, please refer to the below code:
desired_caps = {
'LT:Options': {
"user": username,
"accessKey": access_key,
"build": "UnitTest-Selenium-Sample",
"name": "UnitTest-Selenium-Test",
"platformName": "Windows 11",
"selenium_version": "4.0.0"
},
"browserName": "Chrome",
"browserVersion": "latest",
}
You can generate Selenium 4 Capabilities for your Python test scripts from our Desired Capability Generator.