Class PhantomJSServicePool
java.lang.Object
net.serenitybdd.core.webdriver.servicepools.DriverServicePool<org.openqa.selenium.phantomjs.PhantomJSDriverService>
net.serenitybdd.core.webdriver.servicepools.PhantomJSServicePool
public class PhantomJSServicePool extends DriverServicePool<org.openqa.selenium.phantomjs.PhantomJSDriverService>
-
Field Summary
Fields inherited from class net.serenitybdd.core.webdriver.servicepools.DriverServicePool
environmentVariables -
Constructor Summary
Constructors Constructor Description PhantomJSServicePool() -
Method Summary
Modifier and Type Method Description protected org.openqa.selenium.WebDrivernewDriverInstance(org.openqa.selenium.Capabilities capabilities)Used as a fallback if the driver service cannot be used for some reason.protected org.openqa.selenium.phantomjs.PhantomJSDriverServicenewDriverService()protected java.lang.StringserviceName()Methods inherited from class net.serenitybdd.core.webdriver.servicepools.DriverServicePool
ensureServiceIsRunning, getDriverService, isRunning, newDriver, shutdown, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PhantomJSServicePool
public PhantomJSServicePool()
-
-
Method Details
-
newDriverService
protected org.openqa.selenium.phantomjs.PhantomJSDriverService newDriverService()- Specified by:
newDriverServicein classDriverServicePool<org.openqa.selenium.phantomjs.PhantomJSDriverService>
-
serviceName
protected java.lang.String serviceName()- Specified by:
serviceNamein classDriverServicePool<org.openqa.selenium.phantomjs.PhantomJSDriverService>
-
newDriverInstance
protected org.openqa.selenium.WebDriver newDriverInstance(org.openqa.selenium.Capabilities capabilities)Description copied from class:DriverServicePoolUsed as a fallback if the driver service cannot be used for some reason.- Specified by:
newDriverInstancein classDriverServicePool<org.openqa.selenium.phantomjs.PhantomJSDriverService>
-