When it comes to Serenity, how can I pass capabilities in Selenium 4?

How to pass capabilities in Selenium 4?

Hello Macy,

You can pass the capabilities as given below:

ChromeOptions browserOptions = new ChromeOptions();
browserOptions.setPlatformName("Windows 10")
browserOptions.setBrowserVersion("104.0")
HashMap<String, Object> ltOptions = new HashMap<String, Object>();
browserOptions.setCapability("LT:Options", ltOptions);