I'm using Maven and Intellij, project set for jdk-12.0.2, maven in pom 1.8 and when trying to run this code :
WebDriverWait wait = new WebDriverWait(driver, 5);
WebElement el = wait.until(ExpectedConditions.elementToBeClickable(By.linkText("https://poczta.wp.pl")));
I get :
Error:(37, 30) java: cannot access java.util.function.Function class file for java.util.function.Function not found
Pointing to 'wait'
Tried changing maven in pom from 1.7 to 1.8. > Invalidate cache/Restart