net.thucydides.core.webdriver
Class ThucydidesWebdriverManager
java.lang.Object
net.thucydides.core.webdriver.ThucydidesWebdriverManager
- All Implemented Interfaces:
- WebdriverManager
public class ThucydidesWebdriverManager
- extends Object
- implements WebdriverManager
Manage WebDriver instances.
It instantiates browser drivers, based on the test configuration, and manages them for the
duration of the tests.
A webdriver manager needs to be thread-safe. Tests can potentially be run in parallel, and different
tests can use different drivers.
- Author:
- johnsmart
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ThucydidesWebdriverManager
@Inject
public ThucydidesWebdriverManager(WebDriverFactory webDriverFactory,
Configuration configuration)
closeDriver
public void closeDriver()
- Specified by:
closeDriver in interface WebdriverManager
closeAllCurrentDrivers
public void closeAllCurrentDrivers()
- Specified by:
closeAllCurrentDrivers in interface WebdriverManager
closeAllDrivers
public void closeAllDrivers()
- Specified by:
closeAllDrivers in interface WebdriverManager
resetDriver
public void resetDriver()
- Specified by:
resetDriver in interface WebdriverManager
getWebdriver
public org.openqa.selenium.WebDriver getWebdriver()
- Specified by:
getWebdriver in interface WebdriverManager
getSessionId
public org.openqa.selenium.remote.SessionId getSessionId()
- Specified by:
getSessionId in interface WebdriverManager
getWebdriver
public org.openqa.selenium.WebDriver getWebdriver(String driverName)
- Specified by:
getWebdriver in interface WebdriverManager
getCurrentActiveWebdriverCount
public int getCurrentActiveWebdriverCount()
- Specified by:
getCurrentActiveWebdriverCount in interface WebdriverManager
getActiveWebdriverCount
public int getActiveWebdriverCount()
- Specified by:
getActiveWebdriverCount in interface WebdriverManager
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.