I'm getting an error

I’m getting an error: You might be using selenium 4 .try using w3c … I already added w3c capability as well as this: capabilities.setCapability(“lt:options”, ltOptions);