What is deprecated Selenium 4?
The Selenium 4 (WebDriver) is a web-browser automation framework that supports various programming languages. It is primarily used for automating tests in a number of software products. The new version of this framework is not backward compatible with the previous versions. The following things have been deprecated in it:
1.Features, Methods, Properties and Events
a)The following features have been deprecated in both WebDriver and Core:
-
DesiredCapabilities class: Use CapabilityMatcher class instead.
-
CommandExecutor class: Use Executor class instead.
-
DesiredCapabilities .setCapability(String, String) method: Use desiredCapabilities.withCapability(String).setProperty(String, String) instead.
-
DesiredCapabilities .setProperty(String, String) method: Use desiredCapabilities.withProperty(String).setValue(String) instead.
-
DesiredCapabilities .setValue(Object) method: Use desiredCapabilities.withValue(Object).setProperty(String, String) or desiredCapabilities.withValue(Object).setActions(Actions) instead.