Tell me the procedure to pass capabilities in Selenium 4 in Robot framework.
1 Like
Hello Tim,
To pass capabilities in Selenium 4 in Robot framework, use capabilities below:
var capabilities = {
'LT:Options' : {
"user" : "Your Lambda Username",
"accessKey" : "Your Lambda Access Key",
"build" : "your build name",
"name" : "your test name",
"platformName" : "Windows 11"
},
"browserName" : "Chrome",
"browserVersion" : "104.0",
}
Selenium Desired Capabilities Generator: Automation Capabilities Generator For Selenium and Appium | LambdaTest
Hello Tim,
You can add capabilities like this in common.robot file:
${BROWSER} ${ROBOT_BROWSER}
&{options} browserName=${browserName} platform=${platform} version=${version} visual=${visual} network=${network} console=${console} name=RobotFramework Lambda Test
&{CAPABILITIES} LT:Options=&{options}
${REMOTE_URL} http://%{LT_USERNAME}:%{LT_ACCESS_KEY}@hub.lambdatest.com/wd/hub
${TIMEOUT} 3000
1 Like