Обновила зависимость
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.6.0</version>
и теперь не могу найти
import org.openqa.selenium.ie.InternetExplorerDriver;
который использовался в методе
private static DesiredCapabilities getCapabilities(String environment) {
DesiredCapabilities caps = new DesiredCapabilities();
if (INTERNET_EXPLORER.equalsIgnoreCase(environment)) {
caps = DesiredCapabilities.internetExplorer();
caps.setCapability("ie.ensureCleanSession", true);
caps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS, true);
} else if (FIREFOX.equalsIgnoreCase(environment)) {
caps = DesiredCapabilities.firefox();
} else if (CHROME.equalsIgnoreCase(environment)) {
caps = DesiredCapabilities.chrome();
} else if (EDGE.equalsIgnoreCase(environment)) {
caps = DesiredCapabilities.edge();
}
return caps;
}
Как переделать код?