mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
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 --HG-- extra : rebase_source : 0031a1acf8cb8b8b742d03e86d332d9e2d071bb2
This commit is contained in:
parent
0de2871e52
commit
b7868a5aa8
@ -149,11 +149,9 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user