Skip to content

Commit e44afb5

Browse files
shbenzernvborisenkoRenderMichael
authored
Added CSharp Example to Selenium Manager (#1967)
* Added CSharp Example to Selenium Manager * Update examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs per @nvborisenko Co-authored-by: Nikolay Borisenko <[email protected]> * Updated with using pattern * Update UsageTest.cs * Update UsageTest.cs * Update UsageTest.cs * Update UsageTest.cs * Update UsageTest.cs * Update examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs Co-authored-by: Nikolay Borisenko <[email protected]> * Update examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs Co-authored-by: Nikolay Borisenko <[email protected]> * testmethod * removed unused imports * Update examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs Co-authored-by: Nikolay Borisenko <[email protected]> * Update lines english * Update line ja * Update lines pt-br * Update lines zh-cn * Update examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs Co-authored-by: Michael Render <[email protected]> --------- Co-authored-by: Nikolay Borisenko <[email protected]> Co-authored-by: Michael Render <[email protected]>
1 parent 816210a commit e44afb5

File tree

5 files changed

+28
-8
lines changed

5 files changed

+28
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using Microsoft.VisualStudio.TestTools.UnitTesting;
2+
using OpenQA.Selenium.Chrome;
3+
4+
namespace SeleniumDocs.SeleniumManagerTest
5+
{
6+
[TestClass]
7+
public class UsageTest
8+
{
9+
[TestMethod]
10+
public void TestWithSeleniumManager()
11+
{
12+
// Before
13+
// using var driver = new ChromeDriver("path/to/chromedriver");
14+
15+
// Now
16+
using var driver = new ChromeDriver();
17+
driver.Navigate().GoToUrl("https://www.selenium.dev/documentation/selenium_manager/");
18+
}
19+
}
20+
}

website_and_docs/content/documentation/selenium_manager.en.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
231231
**Selenium Manager**
232232
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
233233
{{< /tab >}}
234-
{{< tab header="CSharp" >}}
235-
{{< badge-code >}}
234+
{{% tab header="CSharp" %}}
235+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236236
{{< /tab >}}
237237
{{< tab header="Ruby" >}}
238238
{{< badge-code >}}

website_and_docs/content/documentation/selenium_manager.ja.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
231231
**Selenium Manager**
232232
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
233233
{{< /tab >}}
234-
{{< tab header="CSharp" >}}
235-
{{< badge-code >}}
234+
{{% tab header="CSharp" %}}
235+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236236
{{< /tab >}}
237237
{{< tab header="Ruby" >}}
238238
{{< badge-code >}}

website_and_docs/content/documentation/selenium_manager.pt-br.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
231231
**Selenium Manager**
232232
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
233233
{{< /tab >}}
234-
{{< tab header="CSharp" >}}
235-
{{< badge-code >}}
234+
{{% tab header="CSharp" %}}
235+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
236236
{{< /tab >}}
237237
{{< tab header="Ruby" >}}
238238
{{< badge-code >}}

website_and_docs/content/documentation/selenium_manager.zh-cn.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,8 @@ INFO Browser path: C:\Users\boni\.cache\selenium\chrome\win64\117.0.5938.22\c
337337
**Selenium Manager**
338338
{{< gh-codeblock path="examples/python/tests/selenium_manager/usage.py#L10-L12" >}}
339339
{{< /tab >}}
340-
{{< tab header="CSharp" >}}
341-
{{< badge-code >}}
340+
{{% tab header="CSharp" %}}
341+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/SeleniumManager/UsageTest.cs#L10-L18" >}}
342342
{{< /tab >}}
343343
{{< tab header="Ruby" >}}
344344
{{< badge-code >}}

0 commit comments

Comments
 (0)