How do pass W3C as a capability in JS TestCafe?

How can I pass W3C as a capability in JS TestCafe?

Hi Emma,

To pass W3C as a capability, you refer to the following:

        DesiredCapabilities capabilities = new DesiredCapabilities();
        capabilities.setCapability("build", "your build name");
        capabilities.setCapability("name", "your test name");
        capabilities.setCapability("platform", "Windows 11");
        capabilities.setCapability("browserName", "Chrome");
        capabilities.setCapability("version","104.0");
        capabilities.setCapability("w3c",true);