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
--- 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