How can I pass capabilities in Selenium 4 in JS-Nightwatch?

How to pass capabilities in Selenium 4 in JS-Nightwatch?

Hello Macy,

To pass capabilities in Selenium 4 in JS-Nightwatch, you can use the code 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