How to integrate my existing Selenium C# NUnit with LT using DesiredCapabilities. Error occurs saying "inaccessible due to its protection level".?

I am trying to integrate my existing Selenium C# NUnit with LT using DesiredCapabilities, but it’s showing error message saying “inaccessible due to its protection level”. Any lead here?

Hello Charity,

Please try passing the Selenium 4 capabilities. You may access the same by clicking on the below link.