biz.neustar.wpm.api
BrowserfirefoxOptions
public interface BrowserfirefoxOptions
It is used to control the behaviour of Firefox.
Example for setCapability(java.lang.String key, java.lang.String value)
var options = test.firefoxoptions();
options.setCapability("acceptInsecureCerts",true)
var driver = openBrowser("FF",options);
var c = driver.getHttpClient();
c.blacklistCommonUrls();
beginTransaction(function() {
beginStep("Description of Step 1", function() {
driver.get("http://example.com");
test.pause(5000);
});
});
Example for addArguments(java.lang.String arguments)
var options = test.firefoxoptions();
options.addArguments("-headless")
var driver = openBrowser("FF",options);
var c = driver.getHttpClient();
c.blacklistCommonUrls();
beginTransaction(function() {
beginStep("Description of Step 1", function() {
driver.get("https://www.google.com");
test.pause(5000);
});
});
Method Summary |
void |
setCapability(java.lang.String key,
java.lang.String value)
|
FirefoxOptions |
addArguments(java.lang.String arguments)
|
setCapability
void setCapability(java.lang.String key,java.lang.Object value)
-
Below are the capabilities supported.
acceptInsecureCerts: Using the acceptInsecureCerts capability you can bypass, or implicitly trust,
TLS certificates that the certificate service in the browser does not trust.
Values can be true or false.
unhandledPromptBehavior: Specifies the behavior of handling unexpected alerts in the driver sessions.
(For Private agent this capability will not work due to lower version of FF and geckodriver)
Values can be accept or dismiss or ignore.
addArguments
addArguments(java.lang.String arguments)
-
Below are the options supported.
-headless: Opens Firefox in headless mode.