diff --git a/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs b/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs index 15b1cf9b6177..ff378021448a 100644 --- a/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs +++ b/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs @@ -5,6 +5,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Chrome; +using OpenQA.Selenium.Internal.Logging; namespace SeleniumDocs.Browsers { @@ -179,5 +180,30 @@ private static string GetChromeLocation() }; return new DriverFinder(options).GetBrowserPath(); } + + [TestMethod] + [DoNotParallelize] + public void PrintOutputToConsole() + { + var stringWriter = new StringWriter(); + var originalOutput = Console.Error; + Console.SetError(stringWriter); + try + { + driver = new ChromeDriver(); + using (var ctx = Log.CreateContext(LogEventLevel.Debug).Handlers.Add(new ConsoleLogHandler())) + { + // logs will be emitted to STDERR + driver.Url = "https://www.selenium.dev/selenium/web/blank.html"; + } + + Assert.IsTrue(stringWriter.ToString().Contains("get {\"url\":\"https://www.selenium.dev/selenium/web/blank.html\"}")); + } + finally + { + Console.SetError(originalOutput); + stringWriter.Dispose(); + } + } } } \ No newline at end of file diff --git a/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs b/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs index f1b118f2497d..f76532567a1b 100644 --- a/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs +++ b/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs @@ -5,6 +5,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium; using OpenQA.Selenium.Edge; +using OpenQA.Selenium.Internal.Logging; namespace SeleniumDocs.Browsers { @@ -179,5 +180,30 @@ private static string GetEdgeLocation() }; return new DriverFinder(options).GetBrowserPath(); } + + [TestMethod] + [DoNotParallelize] + public void PrintOutputToConsole() + { + var stringWriter = new StringWriter(); + var originalOutput = Console.Error; + Console.SetError(stringWriter); + try + { + driver = new EdgeDriver(); + using (var ctx = Log.CreateContext(LogEventLevel.Debug).Handlers.Add(new ConsoleLogHandler())) + { + // logs will be emitted to STDERR + driver.Url = "https://www.selenium.dev/selenium/web/blank.html"; + } + + Assert.IsTrue(stringWriter.ToString().Contains("get {\"url\":\"https://www.selenium.dev/selenium/web/blank.html\"}")); + } + finally + { + Console.SetError(originalOutput); + stringWriter.Dispose(); + } + } } } \ No newline at end of file diff --git a/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs b/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs index cbcffe0e2cf3..17c0826424af 100644 --- a/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs +++ b/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs @@ -3,6 +3,7 @@ using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA.Selenium.IE; +using OpenQA.Selenium.Internal.Logging; using SeleniumDocs.TestSupport; namespace SeleniumDocs.Browsers @@ -126,5 +127,29 @@ private string GetEdgeLocation() { return Environment.GetEnvironmentVariable("EDGE_BIN"); } + + [TestMethod] + [DoNotParallelize] + public void PrintOutputToConsole() + { + var stringWriter = new StringWriter(); + var originalOutput = Console.Error; + Console.SetError(stringWriter); + try + { + using (var ctx = Log.CreateContext(LogEventLevel.Debug).Handlers.Add(new ConsoleLogHandler())) + { + // logs will be emitted to STDERR + _driver = new InternetExplorerDriver(); + } + + Assert.IsTrue(stringWriter.ToString().Contains("Executing command: []: newSession")); + } + finally + { + Console.SetError(originalOutput); + stringWriter.Dispose(); + } + } } } \ No newline at end of file diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md index 224c8bcbd3b5..3bddd2efbb1a 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.en.md @@ -29,7 +29,7 @@ Starting a Chrome session with basic defined options looks like this: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L31-L32" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L10-L11" >}} @@ -61,7 +61,7 @@ Add an argument to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L40" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L17" >}} @@ -89,7 +89,7 @@ Add a browser location to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L50" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L25" >}} @@ -118,7 +118,7 @@ Add an extension to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L61" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L62" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L34" >}} @@ -175,7 +175,7 @@ Set excluded arguments on options: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L76" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L77" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L53" >}} @@ -215,7 +215,7 @@ Property value: String representing path to log file {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L71" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L87" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -246,7 +246,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L82" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L194-L198" >}} {{< /tab >}} {{% tab header="Ruby" %}} `$stdout` and `$stderr` are both valid values @@ -346,7 +346,7 @@ Property value: `"true"` or `"false"` {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L115" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L156" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md index 2949c39cf827..ad7189e9ec42 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.ja.md @@ -28,7 +28,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L31-L32" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L10-L11" >}} @@ -60,7 +60,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L40" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L17" >}} @@ -88,7 +88,7 @@ ChromeおよびChromiumに特有の機能は、Googleの [Capabilities & ChromeO {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L50" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L25" >}} @@ -117,7 +117,7 @@ The `extensions` パラメータはcrxファイルを受け入れます。解凍 {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L61" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L62" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L34" >}} @@ -174,7 +174,7 @@ Chrome はさまざまな引数を追加します。 {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L76" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L77" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L53" >}} @@ -212,7 +212,7 @@ Chrome はさまざまな引数を追加します。 {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L71" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L87" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -243,7 +243,7 @@ Chrome はさまざまな引数を追加します。 {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L82" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L194-L198" >}} {{< /tab >}} {{% tab header="Ruby" %}} `$stdout` と `$stderr` はどちらも有効な値です。 @@ -338,7 +338,7 @@ ChromedriverとChromeブラウザのバージョンは一致する必要があ {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L115" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L156" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md index ad5a7234b3d0..316f34dd33a0 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.pt-br.md @@ -27,7 +27,7 @@ Este é um exemplo de como iniciar uma sessão Chrome com um conjunto de opçõe {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L31-L32" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L10-L11" >}} @@ -61,7 +61,7 @@ Add an argument to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L40" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L17" >}} @@ -86,7 +86,7 @@ Adicionar uma localização: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L50" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L25" >}} @@ -117,7 +117,7 @@ Adicionar uma extensão: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L61" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L62" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L34" >}} @@ -176,7 +176,7 @@ Exclua parametros: {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L76" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L77" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L53" >}} @@ -216,7 +216,7 @@ Property value: String representing path to log file {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L71" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L87" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -247,7 +247,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L82" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L194-L198" >}} {{< /tab >}} {{% tab header="Ruby" %}} `$stdout` and `$stderr` are both valid values @@ -347,7 +347,7 @@ Property value: `"true"` or `"false"` {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L115" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L156" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md b/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md index 44882a2a3f57..9be37083fbb9 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/browsers/chrome.zh-cn.md @@ -27,7 +27,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L9-L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L30-L31" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L31-L32" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L10-L11" >}} @@ -61,7 +61,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L18" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L39" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L40" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L17" >}} @@ -88,7 +88,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L29">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L49" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L50" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L25" >}} @@ -117,7 +117,7 @@ Chrome浏览器的特有功能可以在谷歌的页面找到: [Capabilities & Ch {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L40">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L61" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L62" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L34" >}} @@ -174,7 +174,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 {{< gh-codeblock path="/examples/python/tests/browsers/test_chrome.py#L62" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L76" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L77" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/chrome_spec.rb#L53" >}} @@ -216,7 +216,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L71" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L86" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L87" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -247,7 +247,7 @@ Chrome 添加了各种参数,如果你不希望添加某些参数,可以将 {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L82" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L194-L198" >}} {{< /tab >}} {{% tab header="Ruby" %}} `$stdout` and `$stderr` are both valid values @@ -348,7 +348,7 @@ Chromedriver 和 Chrome 浏览器版本应该匹配, 如果它们不匹配, 驱 {{< gh-codeblock path="examples/python/tests/browsers/test_chrome.py#L115" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L155" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/ChromeTest.cs#L156" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.en.md b/website_and_docs/content/documentation/webdriver/browsers/edge.en.md index bbbe526fa5de..dd6796bffe86 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.en.md @@ -26,7 +26,7 @@ Starting an Edge session with basic defined options looks like this: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L30-L31" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L31-L32" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L10-L11" >}} @@ -58,7 +58,7 @@ Add an argument to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L39" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L40" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L17" >}} @@ -86,7 +86,7 @@ Add a browser location to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L29">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L49" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L50" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L25" >}} @@ -115,7 +115,7 @@ Add an extension to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L61" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L62" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L34" >}} @@ -172,7 +172,7 @@ Set excluded arguments on options: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L76" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L77" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L53" >}} @@ -243,7 +243,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_edge.py#L82" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L194-198" >}} {{< /tab >}} {{% tab header="Ruby" %}} `$stdout` and `$stderr` are both valid values diff --git a/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md index c2a5d283bae3..dca0fb7768a6 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/edge.pt-br.md @@ -28,7 +28,7 @@ Este é um exemplo de como iniciar uma sessão Edge com um conjunto de opções {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L9-L10" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L30-L31" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L31-L32" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L10-L11" >}} @@ -60,7 +60,7 @@ Adicione uma opção: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L18" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L39" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L40" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L17" >}} @@ -88,7 +88,7 @@ Add a browser location to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L29">}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L49" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L50" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L25" >}} @@ -117,7 +117,7 @@ Add an extension to options: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L40" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L61" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L62" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L34" >}} @@ -174,7 +174,7 @@ Set excluded arguments on options: {{< gh-codeblock path="/examples/python/tests/browsers/test_edge.py#L62" >}} {{% /tab %}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L76" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L77" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/edge_spec.rb#L53" >}} @@ -245,7 +245,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_edge.py#L82" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/EdgeTest.cs#L194-L198" >}} {{< /tab >}} {{% tab header="Ruby" %}} `$stdout` and `$stderr` are both valid values diff --git a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.en.md b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.en.md index af3c5f2d3feb..f5534dd78763 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.en.md +++ b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.en.md @@ -35,7 +35,7 @@ Starting a Microsoft Edge browser in Internet Explorer Compatibility mode with b {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L11-L14" >}} {{% /tab %}} {{% tab header="CSharp" %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L35-L38" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L36-L39" >}} {{% /tab %}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L17-L20" >}} @@ -65,7 +65,7 @@ So, if IE is not on the system, you only need: {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L21-L22" >}} {{% /tab %}} {{% tab header="CSharp" text=true %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L44-L45" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L45-L46" >}} {{% /tab %}} {{< tab header="Ruby" text=true >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L24-L25" >}} @@ -553,7 +553,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L109-L111" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L140-L144" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -582,7 +582,7 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L121-L123" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L85" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L86" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -610,7 +610,7 @@ Property value: String representing path to supporting files directory {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L133-L135" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L98" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L99" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md index 649a36c98d17..17f7d3504f3f 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md +++ b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.ja.md @@ -35,7 +35,7 @@ Starting a Microsoft Edge browser in Internet Explorer Compatibility mode with b {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L11-L14" >}} {{% /tab %}} {{% tab header="CSharp" %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L35-L38" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L36-L39" >}} {{% /tab %}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L17-L20" >}} @@ -64,7 +64,7 @@ So, if IE is not on the system, you only need: {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L21-L22" >}} {{% /tab %}} {{% tab header="CSharp" text=true %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L44-L45" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L45-L46" >}} {{% /tab %}} {{< tab header="Ruby" text=true >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L24-L25" >}} @@ -541,7 +541,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L109-L111" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L140-L144" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -570,7 +570,7 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L121-L123" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L85" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L86" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -598,7 +598,7 @@ Property value: String representing path to supporting files directory {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L133-L135" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L98" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L99" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.pt-br.md b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.pt-br.md index 07f7b0909646..dac0d2fafe3c 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.pt-br.md @@ -35,7 +35,7 @@ usando um conjunto de opções básicas: {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L11-L14" >}} {{% /tab %}} {{% tab header="CSharp" %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L35-L38" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L36-L39" >}} {{% /tab %}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L17-L20" >}} @@ -65,7 +65,7 @@ So, if IE is not on the system, you only need: {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L21-L22" >}} {{% /tab %}} {{% tab header="CSharp" text=true %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L44-L45" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L45-L46" >}} {{% /tab %}} {{< tab header="Ruby" text=true >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L24-L25" >}} @@ -549,7 +549,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L109-L111" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L140-L144" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -578,7 +578,7 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L121-123" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L85" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L86" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -606,7 +606,7 @@ Property value: String representing path to supporting files directory {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L133-135" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L98" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L99" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}} diff --git a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.zh-cn.md b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.zh-cn.md index 80b16de42e2c..db3fdad7d4d8 100644 --- a/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/browsers/internet_explorer.zh-cn.md @@ -35,7 +35,7 @@ Starting a Microsoft Edge browser in Internet Explorer Compatibility mode with b {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L11-L14" >}} {{% /tab %}} {{% tab header="CSharp" %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L35-L38" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L36-L39" >}} {{% /tab %}} {{< tab header="Ruby" >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L17-L20" >}} @@ -64,7 +64,7 @@ So, if IE is not on the system, you only need: {{< gh-codeblock path="/examples/python/tests/browsers/test_internet_explorer.py#L21-L22" >}} {{% /tab %}} {{% tab header="CSharp" text=true %}} -{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L44-L45" >}} +{{< gh-codeblock path="/examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L45-L46" >}} {{% /tab %}} {{< tab header="Ruby" text=true >}} {{< gh-codeblock path="/examples/ruby/spec/browsers/internet_explorer_spec.rb#L24-L25" >}} @@ -551,7 +551,7 @@ Property value: `DriverService.LOG_STDOUT` or `DriverService.LOG_STDERR` {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L109-L111" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< badge-implementation >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L140-L144" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -580,7 +580,7 @@ Property value: String representation of `InternetExplorerDriverLogLevel.DEBUG.t {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L121-L123" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L85" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L86" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.10" >}} @@ -608,7 +608,7 @@ Property value: String representing path to supporting files directory {{< gh-codeblock path="examples/python/tests/browsers/test_internet_explorer.py#L133-L135" >}} {{< /tab >}} {{< tab header="CSharp" >}} -{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L98" >}} +{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Browsers/InternetExplorerTest.cs#L99" >}} {{< /tab >}} {{< tab header="Ruby" >}} {{< badge-version version="4.8" >}}