Skip to content

Commit 994d09f

Browse files
authored
Merge branch 'trunk' into metadata
2 parents db53ae5 + fe5b198 commit 994d09f

File tree

68 files changed

+1755
-372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1755
-372
lines changed

.github/workflows/ci-python.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ jobs:
100100
fail-fast: false
101101
matrix:
102102
include:
103+
- browser: safari
104+
os: macos
103105
- browser: chrome
104106
os: ubuntu
105107
- browser: edge
@@ -112,23 +114,5 @@ jobs:
112114
os: ${{ matrix.os }}
113115
cache-key: py-browser-${{ matrix.browser }}
114116
run: |
115-
bazel test --flaky_test_attempts 3 //py:common-${{ matrix.browser }}-bidi
116-
bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-${{ matrix.browser }}
117-
118-
safari-tests:
119-
name: Browser Tests
120-
needs: build
121-
uses: ./.github/workflows/bazel.yml
122-
strategy:
123-
fail-fast: false
124-
matrix:
125-
include:
126-
- browser: safari
127-
os: macos
128-
with:
129-
name: Integration Tests (${{ matrix.browser }}, ${{ matrix.os }})
130-
browser: ${{ matrix.browser }}
131-
os: ${{ matrix.os }}
132-
cache-key: py-browser-${{ matrix.browser }}
133-
run: |
117+
bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:common-${{ matrix.browser }}-bidi
134118
bazel test --local_test_jobs 1 --flaky_test_attempts 3 //py:test-${{ matrix.browser }}

.skipped-tests

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
-//py:test-chrome-test/selenium/webdriver/chrome/chrome_launcher_tests.py
3232
-//py:test-chrome-test/selenium/webdriver/chrome/chrome_service_tests.py
3333
-//py:test-chrome-test/selenium/webdriver/chrome/proxy_tests.py
34+
-//py:test-edge-test/selenium/webdriver/edge/edge_launcher_tests.py
35+
-//py:test-edge-test/selenium/webdriver/edge/edge_service_tests.py
3436
-//rb/spec/integration/selenium/webdriver/chrome:service-chrome
3537
-//rb/spec/integration/selenium/webdriver/chrome:service-chrome-bidi
3638
-//rb/spec/integration/selenium/webdriver/chrome:service-chrome-remote

dotnet/src/webdriver/DefaultFileDetector.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
// under the License.
1818
// </copyright>
1919

20+
using System.Diagnostics.CodeAnalysis;
21+
22+
#nullable enable
23+
2024
namespace OpenQA.Selenium
2125
{
2226
/// <summary>
@@ -31,7 +35,7 @@ public class DefaultFileDetector : IFileDetector
3135
/// </summary>
3236
/// <param name="keySequence">The sequence to test for file existence.</param>
3337
/// <returns>This method always returns <see langword="false"/> in this implementation.</returns>
34-
public bool IsFile(string keySequence)
38+
public bool IsFile([NotNullWhen(true)] string? keySequence)
3539
{
3640
return false;
3741
}

dotnet/src/webdriver/DetachedShadowRootException.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
// </copyright>
1919

2020
using System;
21-
using System.Runtime.Serialization;
21+
22+
#nullable enable
2223

2324
namespace OpenQA.Selenium
2425
{
@@ -41,7 +42,7 @@ public DetachedShadowRootException()
4142
/// a specified error message.
4243
/// </summary>
4344
/// <param name="message">The message that describes the error.</param>
44-
public DetachedShadowRootException(string message)
45+
public DetachedShadowRootException(string? message)
4546
: base(message)
4647
{
4748
}
@@ -54,7 +55,7 @@ public DetachedShadowRootException(string message)
5455
/// <param name="message">The error message that explains the reason for the exception.</param>
5556
/// <param name="innerException">The exception that is the cause of the current exception,
5657
/// or <see langword="null"/> if no inner exception is specified.</param>
57-
public DetachedShadowRootException(string message, Exception innerException)
58+
public DetachedShadowRootException(string? message, Exception? innerException)
5859
: base(message, innerException)
5960
{
6061
}

dotnet/src/webdriver/DevTools/CommandResponseException.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
using System;
2121

22+
#nullable enable
23+
2224
namespace OpenQA.Selenium.DevTools
2325
{
2426
/// <summary>
@@ -39,7 +41,7 @@ public CommandResponseException()
3941
/// Initializes a new instance of the <see cref="CommandResponseException"/> class with the specified message.
4042
/// </summary>
4143
/// <param name="message">The message of the exception.</param>
42-
public CommandResponseException(string message)
44+
public CommandResponseException(string? message)
4345
: base(message)
4446
{
4547
}
@@ -49,7 +51,7 @@ public CommandResponseException(string message)
4951
/// </summary>
5052
/// <param name="message">The message of the exception.</param>
5153
/// <param name="innerException">The inner exception for this exception.</param>
52-
public CommandResponseException(string message, Exception innerException)
54+
public CommandResponseException(string? message, Exception? innerException)
5355
: base(message, innerException)
5456
{
5557
}

dotnet/src/webdriver/DriverServiceNotFoundException.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
// </copyright>
1919

2020
using System;
21-
using System.Runtime.Serialization;
21+
22+
#nullable enable
2223

2324
namespace OpenQA.Selenium
2425
{
2526
/// <summary>
26-
/// The exception that is thrown when an element is not visible.
27+
/// The exception that is thrown when the driver service is not available.
2728
/// </summary>
2829
[Serializable]
2930
public class DriverServiceNotFoundException : WebDriverException
@@ -41,7 +42,7 @@ public DriverServiceNotFoundException()
4142
/// a specified error message.
4243
/// </summary>
4344
/// <param name="message">The message that describes the error.</param>
44-
public DriverServiceNotFoundException(string message)
45+
public DriverServiceNotFoundException(string? message)
4546
: base(message)
4647
{
4748
}
@@ -54,7 +55,7 @@ public DriverServiceNotFoundException(string message)
5455
/// <param name="message">The error message that explains the reason for the exception.</param>
5556
/// <param name="innerException">The exception that is the cause of the current exception,
5657
/// or <see langword="null"/> if no inner exception is specified.</param>
57-
public DriverServiceNotFoundException(string message, Exception innerException)
58+
public DriverServiceNotFoundException(string? message, Exception? innerException)
5859
: base(message, innerException)
5960
{
6061
}

dotnet/src/webdriver/ElementClickInterceptedException.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
// </copyright>
1919

2020
using System;
21-
using System.Runtime.Serialization;
21+
22+
#nullable enable
2223

2324
namespace OpenQA.Selenium
2425
{
@@ -41,7 +42,7 @@ public ElementClickInterceptedException()
4142
/// a specified error message.
4243
/// </summary>
4344
/// <param name="message">The message that describes the error.</param>
44-
public ElementClickInterceptedException(string message)
45+
public ElementClickInterceptedException(string? message)
4546
: base(message)
4647
{
4748
}
@@ -54,7 +55,7 @@ public ElementClickInterceptedException(string message)
5455
/// <param name="message">The error message that explains the reason for the exception.</param>
5556
/// <param name="innerException">The exception that is the cause of the current exception,
5657
/// or <see langword="null"/> if no inner exception is specified.</param>
57-
public ElementClickInterceptedException(string message, Exception innerException)
58+
public ElementClickInterceptedException(string? message, Exception? innerException)
5859
: base(message, innerException)
5960
{
6061
}

dotnet/src/webdriver/ElementNotInteractableException.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
// </copyright>
1919

2020
using System;
21-
using System.Runtime.Serialization;
21+
22+
#nullable enable
2223

2324
namespace OpenQA.Selenium
2425
{
2526
/// <summary>
26-
/// The exception that is thrown when an element is not visible.
27+
/// The exception that is thrown when an element is not interactable.
2728
/// </summary>
2829
[Serializable]
2930
public class ElementNotInteractableException : InvalidElementStateException
@@ -41,7 +42,7 @@ public ElementNotInteractableException()
4142
/// a specified error message.
4243
/// </summary>
4344
/// <param name="message">The message that describes the error.</param>
44-
public ElementNotInteractableException(string message)
45+
public ElementNotInteractableException(string? message)
4546
: base(message)
4647
{
4748
}
@@ -54,7 +55,7 @@ public ElementNotInteractableException(string message)
5455
/// <param name="message">The error message that explains the reason for the exception.</param>
5556
/// <param name="innerException">The exception that is the cause of the current exception,
5657
/// or <see langword="null"/> if no inner exception is specified.</param>
57-
public ElementNotInteractableException(string message, Exception innerException)
58+
public ElementNotInteractableException(string? message, Exception? innerException)
5859
: base(message, innerException)
5960
{
6061
}

dotnet/src/webdriver/ElementNotSelectableException.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@
1818
// </copyright>
1919

2020
using System;
21-
using System.Runtime.Serialization;
21+
22+
#nullable enable
2223

2324
namespace OpenQA.Selenium
2425
{
2526
/// <summary>
26-
/// The exception that is thrown when an element is not visible.
27+
/// The exception that is thrown when an element is not selectable.
2728
/// </summary>
2829
[Serializable]
2930
public class ElementNotSelectableException : InvalidElementStateException
@@ -41,7 +42,7 @@ public ElementNotSelectableException()
4142
/// a specified error message.
4243
/// </summary>
4344
/// <param name="message">The message that describes the error.</param>
44-
public ElementNotSelectableException(string message)
45+
public ElementNotSelectableException(string? message)
4546
: base(message)
4647
{
4748
}
@@ -54,7 +55,7 @@ public ElementNotSelectableException(string message)
5455
/// <param name="message">The error message that explains the reason for the exception.</param>
5556
/// <param name="innerException">The exception that is the cause of the current exception,
5657
/// or <see langword="null"/> if no inner exception is specified.</param>
57-
public ElementNotSelectableException(string message, Exception innerException)
58+
public ElementNotSelectableException(string? message, Exception? innerException)
5859
: base(message, innerException)
5960
{
6061
}

dotnet/src/webdriver/ElementNotVisibleException.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
// </copyright>
1919

2020
using System;
21-
using System.Runtime.Serialization;
21+
22+
#nullable enable
2223

2324
namespace OpenQA.Selenium
2425
{
@@ -41,7 +42,7 @@ public ElementNotVisibleException()
4142
/// a specified error message.
4243
/// </summary>
4344
/// <param name="message">The message that describes the error.</param>
44-
public ElementNotVisibleException(string message)
45+
public ElementNotVisibleException(string? message)
4546
: base(message)
4647
{
4748
}
@@ -54,7 +55,7 @@ public ElementNotVisibleException(string message)
5455
/// <param name="message">The error message that explains the reason for the exception.</param>
5556
/// <param name="innerException">The exception that is the cause of the current exception,
5657
/// or <see langword="null"/> if no inner exception is specified.</param>
57-
public ElementNotVisibleException(string message, Exception innerException)
58+
public ElementNotVisibleException(string? message, Exception? innerException)
5859
: base(message, innerException)
5960
{
6061
}

0 commit comments

Comments
 (0)