How do I use Selenium 4?

How do I use Selenium 4?

If you are using Maven Project update the version in pom.xml file . There may be issues on browser capabilities if you are using DesirecCapabilites, So read here about things to be taking care while upgrading from Selenium 3 to Selenium 4