public final class AppiumDriverLocalService
extends org.openqa.selenium.remote.service.DriverService
| Modifier and Type | Method and Description |
|---|---|
void |
addOutPutStream(java.io.OutputStream outputStream)
Adds other output stream which should accept server output data.
|
void |
addOutPutStreams(java.util.List<java.io.OutputStream> outputStreams)
Adds other output streams which should accept server output data.
|
static AppiumDriverLocalService |
buildDefaultService() |
static AppiumDriverLocalService |
buildService(AppiumServiceBuilder builder) |
boolean |
clearOutPutStreams()
Remove all existing server output streams.
|
java.lang.String |
getStdOut()
Logs as string.
|
java.net.URL |
getUrl()
Base URL.
|
boolean |
isRunning() |
void |
start()
Starts the defined appium server.
|
void |
stop()
Stops this service is it is currently running.
|
public static AppiumDriverLocalService buildDefaultService()
public static AppiumDriverLocalService buildService(AppiumServiceBuilder builder)
public java.net.URL getUrl()
getUrl in class org.openqa.selenium.remote.service.DriverServicepublic boolean isRunning()
isRunning in class org.openqa.selenium.remote.service.DriverServicepublic void start()
throws AppiumServerHasNotBeenStartedLocallyException
start in class org.openqa.selenium.remote.service.DriverServiceAppiumServerHasNotBeenStartedLocallyException - If an error occurs while spawning the child process.stop()public void stop()
stop in class org.openqa.selenium.remote.service.DriverServicestart()@Nullable public java.lang.String getStdOut()
public void addOutPutStream(java.io.OutputStream outputStream)
outputStream - is an instance of OutputStream
that is ready to accept server outputpublic void addOutPutStreams(java.util.List<java.io.OutputStream> outputStreams)
outputStreams - is a list of additional OutputStream
that are ready to accept server outputpublic boolean clearOutPutStreams()