Skip to content

Commit 77d830f

Browse files
Update dependency Selenium.Support to v4.21.0 (#1719)
* Update dependency Selenium.Support to v4.21.0 * Updating both deps * Only running test on OSX as browser versions vary in the runners. * One more try * One more attempt * Fixing references --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Diego Molina <[email protected]>
1 parent b96ad86 commit 77d830f

File tree

6 files changed

+17
-19
lines changed

6 files changed

+17
-19
lines changed

examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
using System;
2-
using System.IO;
3-
using System.Linq;
41
using Microsoft.VisualStudio.TestTools.UnitTesting;
52
using OpenQA.Selenium;
63
using OpenQA.Selenium.Chrome;
7-
using OpenQA.Selenium.Firefox;
4+
using SeleniumDocs.TestSupport;
85

96
namespace SeleniumDocs.Drivers
107
{
@@ -18,7 +15,8 @@ public void BasicService()
1815
driver = new ChromeDriver(service);
1916
}
2017

21-
[TestMethod]
18+
[TestMethodCustom]
19+
[EnabledOnOs("OSX")]
2220
public void DriverLocation()
2321
{
2422
var options = GetLatestChromeOptions();

examples/dotnet/SeleniumDocs/SeleniumDocs.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="7.5.2" />
1111
<PackageReference Include="MSTest.TestAdapter" Version="3.3.1" />
1212
<PackageReference Include="MSTest.TestFramework" Version="3.3.1" />
13-
<PackageReference Include="Selenium.Support" Version="4.20.0" />
14-
<PackageReference Include="Selenium.WebDriver" Version="4.20.0" />
13+
<PackageReference Include="Selenium.Support" Version="4.21.0" />
14+
<PackageReference Include="Selenium.WebDriver" Version="4.21.0" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

website_and_docs/content/documentation/webdriver/drivers/service.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To start a driver with a default service instance:
2727
**Note**: Python Service classes only allow values to be set as arguments to the constructor.
2828
{{% /tab %}}
2929
{{% tab header="CSharp" %}}
30-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L17-L18" >}}
30+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L14-L15" >}}
3131
**Note**: .NET Service classes allow values to be set as properties.
3232
{{% /tab %}}
3333
{{% tab header="Ruby" %}}
@@ -57,7 +57,7 @@ If you cannot update Selenium or have an advanced use case, here is how to speci
5757
{{< /tab >}}
5858
{{< tab header="CSharp" >}}
5959
{{< badge-version version="4.9" >}}
60-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L25" >}}
60+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L23" >}}
6161
{{< /tab >}}
6262
{{< tab header="Ruby" >}}
6363
{{< badge-version version="4.8" >}}
@@ -84,7 +84,7 @@ If you want the driver to run on a specific port, you may specify it as follows:
8484
{{< gh-codeblock path="examples/python/tests/drivers/test_service.py#L23" >}}
8585
{{< /tab >}}
8686
{{< tab header="CSharp" >}}
87-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L34" >}}
87+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L32" >}}
8888
{{< /tab >}}
8989
{{< tab header="Ruby" >}}
9090
{{< badge-version version="4.8" >}}

website_and_docs/content/documentation/webdriver/drivers/service.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To start a driver with a default service instance:
2525
{{< gh-codeblock path="examples/python/tests/drivers/test_service.py#L5-L6" >}}
2626
{{< /tab >}}
2727
{{< tab header="CSharp" >}}
28-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L17-L18" >}}
28+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L14-L15" >}}
2929
{{< /tab >}}
3030
{{< tab header="Ruby" >}}
3131
{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L14-L15" >}}
@@ -53,7 +53,7 @@ If you can not update Selenium or have an advanced use case here is how to speci
5353
{{< /tab >}}
5454
{{< tab header="CSharp" >}}
5555
{{< badge-version version="4.9" >}}
56-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L25" >}}
56+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L23" >}}
5757
{{< /tab >}}
5858
{{< tab header="Ruby" >}}
5959
{{< badge-version version="4.8" >}}
@@ -80,7 +80,7 @@ If you want the driver to run on a specific port, you may specify it as follows:
8080
{{< gh-codeblock path="examples/python/tests/drivers/test_service.py#L23" >}}
8181
{{< /tab >}}
8282
{{< tab header="CSharp" >}}
83-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L34" >}}
83+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L32" >}}
8484
{{< /tab >}}
8585
{{< tab header="Ruby" >}}
8686
{{< badge-version version="4.8" >}}

website_and_docs/content/documentation/webdriver/drivers/service.pt-br.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To start a driver with a default service instance:
2525
{{< gh-codeblock path="examples/python/tests/drivers/test_service.py#L5-L6" >}}
2626
{{< /tab >}}
2727
{{< tab header="CSharp" >}}
28-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L17-L18" >}}
28+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L14-L15" >}}
2929
{{< /tab >}}
3030
{{< tab header="Ruby" >}}
3131
{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L14-L15" >}}
@@ -53,7 +53,7 @@ If you can not update Selenium or have an advanced use case here is how to speci
5353
{{< /tab >}}
5454
{{< tab header="CSharp" >}}
5555
{{< badge-version version="4.9" >}}
56-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L25" >}}
56+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L23" >}}
5757
{{< /tab >}}
5858
{{< tab header="Ruby" >}}
5959
{{< badge-version version="4.8" >}}
@@ -80,7 +80,7 @@ If you want the driver to run on a specific port, you may specify it as follows:
8080
{{< gh-codeblock path="examples/python/tests/drivers/test_service.py#L23" >}}
8181
{{< /tab >}}
8282
{{< tab header="CSharp" >}}
83-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L34" >}}
83+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L32" >}}
8484
{{< /tab >}}
8585
{{< tab header="Ruby" >}}
8686
{{< badge-version version="4.8" >}}

website_and_docs/content/documentation/webdriver/drivers/service.zh-cn.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To start a driver with a default service instance:
2525
{{< gh-codeblock path="examples/python/tests/drivers/test_service.py#L5-L6" >}}
2626
{{< /tab >}}
2727
{{< tab header="CSharp" >}}
28-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L17-L18" >}}
28+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L14-L15" >}}
2929
{{< /tab >}}
3030
{{< tab header="Ruby" >}}
3131
{{< gh-codeblock path="examples/ruby/spec/drivers/service_spec.rb#L14-L15" >}}
@@ -53,7 +53,7 @@ If you can not update Selenium or have an advanced use case here is how to speci
5353
{{< /tab >}}
5454
{{< tab header="CSharp" >}}
5555
{{< badge-version version="4.9" >}}
56-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L25" >}}
56+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L23" >}}
5757
{{< /tab >}}
5858
{{< tab header="Ruby" >}}
5959
{{< badge-version version="4.8" >}}
@@ -80,7 +80,7 @@ If you want the driver to run on a specific port, you may specify it as follows:
8080
{{< gh-codeblock path="examples/python/tests/drivers/test_service.py#L23" >}}
8181
{{< /tab >}}
8282
{{< tab header="CSharp" >}}
83-
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L34" >}}
83+
{{< gh-codeblock path="examples/dotnet/SeleniumDocs/Drivers/ServiceTest.cs#L32" >}}
8484
{{< /tab >}}
8585
{{< tab header="Ruby" >}}
8686
{{< badge-version version="4.8" >}}

0 commit comments

Comments
 (0)