I am new to Java with Selenium and I am not being able to use WebDriverWait class.
I have added dependencies for selenium and webdriver manager and also imported the class on the java class but still I am getting: WebDriverWait is undefined.
I tried to import the class manually and also tried to change dependencies on the pom.xml file / also updated the project after every change but its not working.
From Selenium 4 and onwards, you should create an object of
WebDriverWaitas below:Imports:
Reference: Class WebDriverWait