How do I fix error "Desired capabilities are deprecated with Selenium 4" while using capability generator?

I am trying to run automation tests but getting error “Desired capabilities are deprecated with Selenium 4”. I am using capability generator to generate the capabilities. How should I pass the capabilities now?

Hi Helen,

The desired capabilities are deprecated with Selenium 4 so you can use LT Options to pass the capabilities. Kindly refer to the Selenium 4 tab in the capability generator for the syntax.