Package org.openqa.selenium.firefox
Class GeckoDriverService.Builder
- java.lang.Object
-
- org.openqa.selenium.remote.service.DriverService.Builder<DS,B>
-
- org.openqa.selenium.firefox.FirefoxDriverService.Builder<GeckoDriverService,GeckoDriverService.Builder>
-
- org.openqa.selenium.firefox.GeckoDriverService.Builder
-
- Enclosing class:
- GeckoDriverService
@AutoService(org.openqa.selenium.remote.service.DriverService.Builder.class) public static class GeckoDriverService.Builder extends FirefoxDriverService.Builder<GeckoDriverService,GeckoDriverService.Builder>
Builder used to configure newGeckoDriverService
instances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<java.lang.String>
createArgs()
protected GeckoDriverService
createDriverService(java.io.File exe, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)
int
score(org.openqa.selenium.Capabilities capabilities)
GeckoDriverService.Builder
usingFirefoxBinary(FirefoxBinary firefoxBinary)
Sets which browser executable the builder will use.GeckoDriverService.Builder
withAllowHosts(java.lang.String allowHosts)
Values of the Host header to allow for incoming requests.
-
-
-
Method Detail
-
score
public int score(org.openqa.selenium.Capabilities capabilities)
- Specified by:
score
in classorg.openqa.selenium.remote.service.DriverService.Builder<GeckoDriverService,GeckoDriverService.Builder>
-
usingFirefoxBinary
public GeckoDriverService.Builder usingFirefoxBinary(FirefoxBinary firefoxBinary)
Sets which browser executable the builder will use.- Parameters:
firefoxBinary
- The browser executable to use.- Returns:
- A self reference.
-
withAllowHosts
public GeckoDriverService.Builder withAllowHosts(java.lang.String allowHosts)
Values of the Host header to allow for incoming requests.- Parameters:
allowHosts
- Space-separated list of host names.- Returns:
- A self reference.
-
createArgs
protected java.util.List<java.lang.String> createArgs()
- Specified by:
createArgs
in classorg.openqa.selenium.remote.service.DriverService.Builder<GeckoDriverService,GeckoDriverService.Builder>
-
createDriverService
protected GeckoDriverService createDriverService(java.io.File exe, int port, java.time.Duration timeout, java.util.List<java.lang.String> args, java.util.Map<java.lang.String,java.lang.String> environment)
- Specified by:
createDriverService
in classorg.openqa.selenium.remote.service.DriverService.Builder<GeckoDriverService,GeckoDriverService.Builder>
-
-