Tabnine Logo
FirefoxOptions.setLogLevel
Code IndexAdd Tabnine to your IDE (free)

How to use
setLogLevel
method
in
org.openqa.selenium.firefox.FirefoxOptions

Best Java code snippets using org.openqa.selenium.firefox.FirefoxOptions.setLogLevel (Showing top 6 results out of 315)

origin: org.seleniumhq.selenium/selenium-firefox-driver

/**
 * @deprecated Use {@link #setLogLevel(FirefoxDriverLogLevel)}
 */
@Deprecated
public FirefoxOptions setLogLevel(Level logLevel) {
 setLogLevel(FirefoxDriverLogLevel.fromLevel(logLevel));
 return this;
}
origin: paypal/SeLion

private FirefoxOptions getDefaultFirefoxOptions() {
  FirefoxOptions options = new FirefoxOptions();
  options.setLogLevel(FirefoxDriverLogLevel.INFO);
  options.setHeadless(Boolean.parseBoolean(getLocalConfigProperty(ConfigProperty.BROWSER_RUN_HEADLESS)));
  return options;
}
origin: Frameworkium/frameworkium-core

@Override
public FirefoxOptions getCapabilities() {
  FirefoxOptions firefoxOptions = new FirefoxOptions();
  firefoxOptions.setHeadless(Property.HEADLESS.getBoolean());
  firefoxOptions.setLogLevel(FirefoxDriverLogLevel.INFO);
  return firefoxOptions;
}
origin: org.seleniumhq.selenium/selenium-firefox-driver

setLegacy(that.legacy);
if (that.logLevel != null) { setLogLevel(that.logLevel); }
if (that.binary != null) { setCapability(BINARY, that.binary.asCapability()); }
 Object rawLevel = logStruct.get("level");
 if (rawLevel instanceof String) {
  setLogLevel(FirefoxDriverLogLevel.fromString((String) rawLevel));
 } else if (rawLevel instanceof FirefoxDriverLogLevel) {
  setLogLevel((FirefoxDriverLogLevel) rawLevel);
origin: net.serenity-bdd/serenity-core

  public void using(EnvironmentVariables environmentVariables) {
    options.setHeadless(HEADLESS_MODE.booleanFrom(environmentVariables,false));
    options.setAcceptInsecureCerts(ACCEPT_INSECURE_CERTIFICATES.booleanFrom(environmentVariables,false));
    FirefoxDriverLogLevel logLevel = FirefoxDriverLogLevel.fromString(FIREFOX_LOG_LEVEL.from(environmentVariables,"ERROR"));
    options.setLogLevel(logLevel);
  }
}
origin: com.infotel.seleniumRobot/core

@Override
protected MutableCapabilities getDriverOptions() {
  FirefoxOptions options = new FirefoxOptions();
  
  if (webDriverConfig.isHeadlessBrowser()) {
    logger.info("setting firefox in headless mode. Supported for firefox version >= 56");
    options.addArguments("-headless");
    options.addArguments("--window-size=1280,1024");
    options.addArguments("--width=1280");
    options.addArguments("--height=1024");
  }
  FirefoxProfile profile = getFirefoxProfile(webDriverConfig);
  configProfile(profile, webDriverConfig);
  options.setCapability(FirefoxDriver.PROFILE, profile);
  options.setLogLevel(FirefoxDriverLogLevel.ERROR);
  
  if (webDriverConfig.isDevMode()) {
    options.setLogLevel(FirefoxDriverLogLevel.TRACE);
  }
  
  // handle https://bugzilla.mozilla.org/show_bug.cgi?id=1429338#c4 and https://github.com/mozilla/geckodriver/issues/789
  options.setCapability("moz:useNonSpecCompliantPointerOrigin", true);
  return options;
}
 
org.openqa.selenium.firefoxFirefoxOptionssetLogLevel

Popular methods of FirefoxOptions

  • <init>
  • setProfile
  • setHeadless
  • merge
  • addArguments
  • setBinary
  • addPreference
  • setCapability
  • setAcceptInsecureCerts
  • getProfile
  • setLegacy
  • setProxy
  • setLegacy,
  • setProxy,
  • SetLoggingPreference,
  • getBinary,
  • getBinaryOrNull,
  • getBrowserName,
  • isLegacy,
  • setUnhandledPromptBehaviour,
  • toString

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • getContentResolver (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • JCheckBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now