Bug 1407969 - Use FirefoxDriverLogLevel for Java example. r=maja_zf
authorAndreas Tolfsen <ato@sny.no>
Thu, 12 Oct 2017 12:56:44 +0100
changeset 385907 c0319b34525352fdf9fcaf26e0a9210fd37afe52
parent 385906 6aff814fd34ebd5abc0d529fbafe82215d80b827
child 385908 ee470df77e3fbb980c953051470c2c074a0c6065
push id32672
push userarchaeopteryx@coole-files.de
push dateFri, 13 Oct 2017 09:00:05 +0000
treeherdermozilla-central@3efcb26e5f37 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf
bugs1407969
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1407969 - Use FirefoxDriverLogLevel for Java example. r=maja_zf The Java client provides two setLogLevel methods in the FirefoxOptions class. It is recommended to use the one that accepts FirefoxDriverLogLevel, as the other one is deprecated. DONTBUILD Thanks-to: Alexei Barantsev <barancev@gmail.com> MozReview-Commit-ID: Fc6p7Gxwn5X
testing/geckodriver/doc/TraceLogs.md
--- a/testing/geckodriver/doc/TraceLogs.md
+++ b/testing/geckodriver/doc/TraceLogs.md
@@ -122,18 +122,19 @@ The log output is directed to stdout.
 
 Java
 ----
 
 The Selenium [Java client] also comes with
 a [`org.openqa.selenium.firefox.FirefoxOptions`] helper for
 constructing the [`moz:firefoxOptions`] capabilities object:
 
-	FirefoxOptions opts = new FirefoxOptions().setLogLevel(Level.ALL);
-	WebDriver driver = new FirefoxDriver(opts);
+	FirefoxOptions options = new FirefoxOptions();
+	options.setLogLevel(FirefoxDriverLogLevel.TRACE);
+	WebDriver driver = new FirefoxDriver(options);
 
 As with C#, the log output is helpfully propagated to stdout.
 
 [Java client]: https://seleniumhq.github.io/selenium/docs/api/java/
 [`org.openqa.selenium.firefox.FirefoxOptions`]: https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/firefox/FirefoxOptions.html
 
 
 Python