Closed HyunAh-iia closed 2 years ago
Sorry. I didn't run headless mode. It works.
@Bean
public WebDriver firefoxDriver() {
FirefoxBinary firefoxBinary = new FirefoxBinary();
firefoxBinary.addCommandLineOptions("--headless");
firefoxBinary.addCommandLineOptions("--no-sandbox");
WebDriverManager.firefoxdriver().setup();
FirefoxOptions options = new FirefoxOptions();
options.setBinary(firefoxBinary);
WebDriver driver = new FirefoxDriver(options);
driver.get("https://google.com");
return driver;
}
Description of the problem: WebDriverManager downloaded a Firefox geckodriver 0.30.0 well, but when I run the driver, it occur error.
Browser and version: Firefox 93.0 and geckodriver 0.30.0
Operating system: Ubuntu 18.04 AMD64 (x86_64) Docker on Intel Mac
WebDriverManager version: 5.0.3
WebDriverManager call:
WebDriver driver = new FirefoxDriver();
WebDriverManager traces:
Dockerfile: