Skip to content

Commit 7e3d32a

Browse files
committed
[py] Fix imports
2 parents db2702d + fde053a commit 7e3d32a

File tree

27 files changed

+154
-102
lines changed

27 files changed

+154
-102
lines changed

.github/workflows/ci-python.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
- name: Checkout source tree
2222
uses: actions/checkout@v4
2323
- name: Set up Python 3.9
24-
uses: actions/setup-python@v4
24+
uses: actions/setup-python@v6
2525
with:
2626
python-version: 3.9
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install tox==4.27.0
30+
pip install tox==4.30.2
3131
- name: Generate docs
3232
run: tox -c py/tox.ini
3333
env:
@@ -41,13 +41,13 @@ jobs:
4141
- name: Checkout source tree
4242
uses: actions/checkout@v4
4343
- name: Set up Python 3.9
44-
uses: actions/setup-python@v4
44+
uses: actions/setup-python@v6
4545
with:
4646
python-version: 3.9
4747
- name: Install dependencies
4848
run: |
4949
python -m pip install --upgrade pip
50-
pip install tox==4.27.0
50+
pip install tox==4.30.2
5151
- name: Run type checking
5252
run: |
5353
tox -c py/tox.ini || true

.github/workflows/update-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
distribution: 'temurin'
6969
- name: Set up Python 3.9
7070
if: ${{ inputs.language == 'py' || inputs.language == 'all' }}
71-
uses: actions/setup-python@v5
71+
uses: actions/setup-python@v6
7272
with:
7373
python-version: 3.9
7474
- name: Install dependencies

dotnet/src/webdriver/InvalidSelectorException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class InvalidSelectorException : WebDriverException
3030
/// <summary>
3131
/// Link to the documentation for this error
3232
/// </summary>
33-
private static string supportUrl = baseSupportUrl + "#invalid-selector-exception";
33+
private static string supportUrl = baseSupportUrl + "#invalidselectorexception";
3434

3535
/// <summary>
3636
/// Initializes a new instance of the <see cref="InvalidSelectorException"/> class.

dotnet/src/webdriver/NoSuchElementException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class NoSuchElementException : NotFoundException
3131
/// <summary>
3232
/// Link to the documentation for this error
3333
/// </summary>
34-
private static string supportUrl = baseSupportUrl + "#no-such-element-exception";
34+
private static string supportUrl = baseSupportUrl + "#nosuchelementexception";
3535

3636
/// <summary>
3737
/// Initializes a new instance of the <see cref="NoSuchElementException"/> class.

dotnet/src/webdriver/StaleElementReferenceException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class StaleElementReferenceException : WebDriverException
3030
/// <summary>
3131
/// Link to the documentation for this error
3232
/// </summary>
33-
private static string supportUrl = baseSupportUrl + "#stale-element-reference-exception";
33+
private static string supportUrl = baseSupportUrl + "#staleelementreferenceexception";
3434

3535
/// <summary>
3636
/// Initializes a new instance of the <see cref="StaleElementReferenceException"/> class.

dotnet/test/common/RelativeLocatorTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void NearLocatorShouldNotFindFarElements()
224224
{
225225
var rect2 = driver.FindElement(RelativeBy.WithLocator(By.Id("rect4")).Near(rect));
226226

227-
}, Throws.TypeOf<NoSuchElementException>().With.Message.EqualTo("Unable to find element; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception"));
227+
}, Throws.TypeOf<NoSuchElementException>().With.Message.EqualTo("Unable to find element; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception"));
228228
}
229229

230230
//------------------------------------------------------------------

java/src/org/openqa/selenium/InvalidSelectorException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
*/
2828
public class InvalidSelectorException extends WebDriverException {
2929

30-
private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalid-selector-exception";
30+
private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#invalidselectorexception";
3131

3232
public InvalidSelectorException(String reason) {
3333
super(reason);

java/src/org/openqa/selenium/NoSuchElementException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@NullMarked
2828
public class NoSuchElementException extends NotFoundException {
2929

30-
private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#no-such-element-exception";
30+
private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#nosuchelementexception";
3131

3232
public NoSuchElementException(@Nullable String reason) {
3333
super(reason);

java/src/org/openqa/selenium/StaleElementReferenceException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@NullMarked
2828
public class StaleElementReferenceException extends WebDriverException {
2929

30-
private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#stale-element-reference-exception";
30+
private static final String SUPPORT_URL = BASE_SUPPORT_URL + "#staleelementreferenceexception";
3131

3232
public StaleElementReferenceException(@Nullable String message) {
3333
super(message);

py/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ respect-gitignore = true
144144
target-version = "py39"
145145

146146
[tool.ruff.lint]
147-
extend-select = ["E4", "E7", "E9", "F", "I", "E501", "RUF022"]
147+
extend-select = ["E4", "E7", "E9", "F", "I", "E501", "RUF022", "TID252"]
148148
fixable = ["ALL"]
149149

150150
[tool.ruff.format]

0 commit comments

Comments
 (0)