Bug 1407969 - Add C# code example. r?maja_zf draft
authorAndreas Tolfsen <ato@sny.no>
Thu, 12 Oct 2017 12:54:26 +0100
changeset 679240 2f5df44e2006a78f0dcf63680a0be61f82418bf9
parent 679239 e6c0edb835425110dee0408c731ccf0bfac9ca72
child 679241 316dae8b721df47fa4f4a51905996401b580e57a
push id84158
push userbmo:ato@sny.no
push dateThu, 12 Oct 2017 12:02:28 +0000
reviewersmaja_zf
bugs1407969
milestone58.0a1
Bug 1407969 - Add C# code example. r?maja_zf DONTBUILD Thanks-to: Jim Evans <james.h.evans.jr@gmail.com> MozReview-Commit-ID: DF1HJUj3Yin
testing/geckodriver/doc/TraceLogs.md
--- a/testing/geckodriver/doc/TraceLogs.md
+++ b/testing/geckodriver/doc/TraceLogs.md
@@ -100,27 +100,42 @@ 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
 
 
+C#
+--
+
+The Selenium [C# client] comes with a [`FirefoxOptions`] helper for
+constructing the [`moz:firefoxOptions`] capabilities object:
+
+	FirefoxOptions options = new FirefoxOptions();
+	options.LogLevel =  FirefoxDriverLogLevel.Trace;
+	IWebDriver driver = new FirefoxDriver(options);
+
+The log output is directed to stdout.
+
+[C# client]: https://seleniumhq.github.io/selenium/docs/api/dotnet/
+[`FirefoxOptions`]: https://seleniumhq.github.io/selenium/docs/api/dotnet/html/T_OpenQA_Selenium_Firefox_FirefoxOptions.htm
+
 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.
+As with C#, 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
 ------