Bug 1407969 - Make Ruby example more ergonomic. r?maja_zf draft
authorAndreas Tolfsen <ato@sny.no>
Thu, 12 Oct 2017 12:50:52 +0100
changeset 679239 e6c0edb835425110dee0408c731ccf0bfac9ca72
parent 679238 b1763a850df496db4615f71804232411a9eaeb24
child 679240 2f5df44e2006a78f0dcf63680a0be61f82418bf9
push id84158
push userbmo:ato@sny.no
push dateThu, 12 Oct 2017 12:02:28 +0000
reviewersmaja_zf
bugs1407969
milestone58.0a1
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