@Service public class WebDriverService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WebDriverService.WebDriverType |
| Modifier and Type | Field and Description |
|---|---|
protected minium.web.config.WebDriverFactory |
webDriverFactory |
| Constructor and Description |
|---|
WebDriverService() |
| Modifier and Type | Method and Description |
|---|---|
WebDriver |
createWebDriver(WebDriversProperties.DeveloperWebDriverProperties webDriverProperties) |
void |
downloadAllWebDrivers()
Download the webdriver Only download if webdriver doesn't exists
|
protected void |
downloadChromeDriver() |
protected void |
downloadGeckoDriver() |
protected void |
downloadIEDriver() |
List<WebDriversProperties.DeveloperWebDriverProperties> |
getAvailableWebdrivers() |
boolean |
isRecorderAvailableForBrowser(String browser) |
void |
updateAllWebDrivers()
Update the version of the webdrivers Even if the webdrivers exists they
will updated
|
void |
webDriverExists(String browserName) |
@Autowired protected minium.web.config.WebDriverFactory webDriverFactory
public void webDriverExists(String browserName) throws IOException
IOExceptionprotected void downloadChromeDriver()
throws IOException
IOExceptionprotected void downloadGeckoDriver()
throws IOException
IOExceptionprotected void downloadIEDriver()
throws IOException
IOExceptionpublic void downloadAllWebDrivers()
throws IOException
IOExceptionpublic void updateAllWebDrivers()
throws IOException
IOExceptionpublic List<WebDriversProperties.DeveloperWebDriverProperties> getAvailableWebdrivers()
public WebDriver createWebDriver(WebDriversProperties.DeveloperWebDriverProperties webDriverProperties) throws IOException
IOExceptionpublic boolean isRecorderAvailableForBrowser(String browser)
Copyright © 2019 VILT Group. All rights reserved.