Bug 1407969 - Make Ruby example more ergonomic. r=maja_zf
authorAndreas Tolfsen <ato@sny.no>
Thu, 12 Oct 2017 12:50:52 +0100
changeset 385905 06b1a22c5e62698313092c6b5e049adfe1abcfdc
parent 385904 0bd61a29a8d60d15752dd4811dfaea3b1425ed76
child 385906 6aff814fd34ebd5abc0d529fbafe82215d80b827
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 - Make Ruby example more ergonomic. r=maja_zf It is better in Ruby to explicitly set the client logger to a certain level, than relying on the DEBUG output variable or the -d flag, even though they are all equivalent. DONTBUILD Thanks-to: Lucas Tierney <lucast1533@gmail.com> Thanks-to: p0deje <p0deje@gmail.com> MozReview-Commit-ID: Eyt9zy0ucZS
testing/geckodriver/doc/TraceLogs.md
--- a/testing/geckodriver/doc/TraceLogs.md
+++ b/testing/geckodriver/doc/TraceLogs.md
@@ -144,16 +144,14 @@ script’s current working directory.
 
 
 Ruby
 ----
 
 The Selenium [Ruby client] comes with an [`Options`] helper to
 generate the correct [`moz:firefoxOptions`] capabilities object:
 
+	Selenium::WebDriver.logger.level = :trace
 	opts = Selenium::WebDriver::Firefox::Options.new(log_level: :trace)
 	driver = Selenium::WebDriver.for :firefox, options: opts
 
-To show the logs, set the `DEBUG=1` output variable or start your
-Ruby interpreter with the `-d` flag.
-
 [Ruby client]: http://seleniumhq.github.io/selenium/docs/api/rb/
 [`Options`]: http://seleniumhq.github.io/selenium/docs/api/rb/Selenium/WebDriver/Firefox/Options.html