I am using Selenium 4.3.0 and Im getting this error, while running this test

I am using Selenium 4.3.0 and Im getting this error while running this test. “org.openqa.selenium.UnsupportedCommandException: getElementDomAttribute” and Warning: Support for Legacy Capabilities is deprecated; You are sending invalid capabilities:…Please update to W3C syntax

Hi Joe,

For Selenium 4, please use “ltOptions” on your capabilities as this supports W3C Protocols.