Codota Logo
FirefoxOptions.setLogLevel
Code IndexAdd Codota 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)

  • Common ways to obtain FirefoxOptions
private void myMethod () {
FirefoxOptions f =
  • Codota Iconnew FirefoxOptions()
  • Codota IconCapabilities source;new FirefoxOptions(source)
  • Codota IconCapabilities capabilities;new FirefoxOptions().merge(capabilities)
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now