author | Andreas Tolfsen <ato@sny.no> |
Thu, 12 Oct 2017 12:50:11 +0100 | |
changeset 385904 | 0bd61a29a8d60d15752dd4811dfaea3b1425ed76 |
parent 385903 | 6162f89a4838dcf93c7b76e04a8ea1b0d452c619 |
child 385905 | 06b1a22c5e62698313092c6b5e049adfe1abcfdc |
push id | 32672 |
push user | archaeopteryx@coole-files.de |
push date | Fri, 13 Oct 2017 09:00:05 +0000 |
treeherder | mozilla-central@3efcb26e5f37 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | maja_zf |
bugs | 1407969 |
milestone | 58.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
|
--- a/testing/geckodriver/doc/TraceLogs.md +++ b/testing/geckodriver/doc/TraceLogs.md @@ -100,16 +100,32 @@ See the client-specific documentation be way to enable trace logs in your language. We want to expand this documentation to cover all the best known clients people use with geckodriver. If you find your language missing, please consider [submitting a patch]. [submitting a patch]: ../CONTRIBUTING.md +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); + +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 ------ The Selenium [Python client] comes with an [`selenium.webdriver.firefox.options.Options`] helper that can be used programmatically to construct the [`moz:firefoxOptions`] capabilities object: @@ -136,24 +152,8 @@ generate the correct [`moz:firefoxOption 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 - - -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); - -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