Bug 1407969 - Organise code examples alphabetically. r?maja_zf
DONTBUILD
MozReview-Commit-ID: C2H3k1r5gWF
--- 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