You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thanks for contributing to Selenium! A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
By a chance establish remote connection to Grid that requires basic auth. The exception without Message, e.g
driver = webdriver.Remote(
File "/home/user/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 212, in __init__
self.start_session(capabilities)
File "/home/user/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 299, in start_session
response = self.execute(Command.NEW_SESSION, caps)["value"]
File "/home/user/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "/home/user/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message:
Adding explicit message for status 401
Also, return the code status in case the response data is empty, so we have at least a status code to guess the issue instead of an empty Message.
After fixed:
File "/home/user/.local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 354, in execute
self.error_handler.check_response(response)
File "/home/user/.local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 193, in check_response
raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message: Authorization Required
Types of changes
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to change)
Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review
Error Handling The new error handling for status code 401 returns a hardcoded message. Consider making this message more flexible or localizable.
Data Handling The new code returns the status code as a string when data is empty. Consider if returning an integer status code would be more appropriate.
Why: Using constants or enums for HTTP status codes is a good practice that improves code readability and maintainability. This suggestion is relevant and would enhance the clarity of the code by replacing magic numbers with descriptive constants.
7
Enhancement
Provide more informative error messages for HTTP status codes between 400 and 500
Consider using a more descriptive error message for non-401 status codes between 400 and 500, instead of just returning the status code as a string when data is empty.
if 399 < statuscode <= 500:
- return {"status": statuscode, "value": str(statuscode) if not data else data.strip() }+ error_message = f"HTTP Error {statuscode}" if not data else data.strip()+ return {"status": statuscode, "value": error_message}
Apply this suggestion
Suggestion importance[1-10]: 6
Why: The suggestion to provide more descriptive error messages for HTTP status codes between 400 and 500 is valid. It enhances the user experience by providing clearer error information, especially when the response data is empty.
The test ensureRoundTripWorks in NodeStatusTest failed because the expected and actual NodeStatus objects were not equal.
The test shouldListAllNodesTheDistributorIsAwareOf in RouterTest failed due to an assertion error expecting a non-null value but received null.
The test canAddExtensionFromStringEncodedInBase64 and canAddExtensionFromFile in ChromeOptionsFunctionalTest failed due to a NoSuchElementException, indicating that the element with the CSS selector #webextensions-selenium-example could not be found.
The test test_collect_log_mutations in bidi_tests.py failed due to an InvalidSelectorException, indicating an invalid or illegal selector was specified.
The test test_can_upload_two_files in upload_tests.py failed because the expected text test_file.txt was not found in the body element, leading to an assertion error.
Relevant error logs:
1: ##[group]Operating System2: Ubuntu
...
303: Need to get 3044 kB of archives.304: After this operation, 1583 MB disk space will be freed.305: Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]306: Ign:2 http://azure.archive.ubuntu.com/ubuntu jammy-updates/main amd64 aspnetcore-targeting-pack-6.0 amd64 6.0.133-0ubuntu1~22.04.1307: Get:3 http://azure.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-targeting-pack-7.0 amd64 7.0.119-0ubuntu1~22.04.1 [1587 kB]308: Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 aspnetcore-targeting-pack-6.0 amd64 6.0.133-0ubuntu1~22.04.1309: Err:2 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 aspnetcore-targeting-pack-6.0 amd64 6.0.133-0ubuntu1~22.04.1310: 404 Not Found [IP: 52.252.75.106 80]311: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/d/dotnet6/aspnetcore-targeting-pack-6.0_6.0.133-0ubuntu1%7e22.04.1_amd64.deb 404 Not Found [IP: 52.252.75.106 80]
...
832: Package 'php-symfony-debug-bundle' is not installed, so not removed833: Package 'php-symfony-dependency-injection' is not installed, so not removed834: Package 'php-symfony-deprecation-contracts' is not installed, so not removed835: Package 'php-symfony-discord-notifier' is not installed, so not removed836: Package 'php-symfony-doctrine-bridge' is not installed, so not removed837: Package 'php-symfony-doctrine-messenger' is not installed, so not removed838: Package 'php-symfony-dom-crawler' is not installed, so not removed839: Package 'php-symfony-dotenv' is not installed, so not removed840: Package 'php-symfony-error-handler' is not installed, so not removed
...
1702: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/click_submit_test.html -> javascript/atoms/test/click_submit_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1703: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/click_test.html -> javascript/atoms/test/click_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1704: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/clientrect_test.html -> javascript/atoms/test/clientrect_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1705: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/color_test.html -> javascript/atoms/test/color_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1706: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/dom_test.html -> javascript/atoms/test/dom_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1707: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/drag_test.html -> javascript/atoms/test/drag_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1708: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/enabled_test.html -> javascript/atoms/test/enabled_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1709: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/enter_submit_test.html -> javascript/atoms/test/enter_submit_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1710: (10:14:37) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/error_test.html -> javascript/atoms/test/error_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test
...
1785: (10:14:38) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/type_test.html -> javascript/atoms/test/type_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1786: (10:14:38) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/useragent_quirks_test.html -> javascript/atoms/test/useragent_quirks_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1787: (10:14:38) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/useragent_test.html -> javascript/atoms/test/useragent_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1788: (10:14:38) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/useragent_test.js -> javascript/atoms/test/useragent_test.js obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1789: (10:14:38) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/window_scroll_into_view_test.html -> javascript/atoms/test/window_scroll_into_view_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1790: (10:14:38) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/window_scroll_test.html -> javascript/atoms/test/window_scroll_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1791: (10:14:38) �[35mWARNING: �[0m/home/runner/work/selenium/selenium/javascript/atoms/BUILD.bazel:351:19: runfiles symlink javascript/atoms/test/window_size_test.html -> javascript/atoms/test/window_size_test.html obscured by javascript/atoms/test -> bazel-out/k8-fastbuild/bin/javascript/atoms/test1792: (10:14:39) �[32mINFO: �[0mFrom Building java/src/org/openqa/selenium/remote/libapi-class.jar (71 source files):1793: java/src/org/openqa/selenium/remote/ErrorHandler.java:46: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1794: private final ErrorCodes errorCodes;1795: ^1796: java/src/org/openqa/selenium/remote/ErrorHandler.java:60: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1797: this.errorCodes = new ErrorCodes();1798: ^1799: java/src/org/openqa/selenium/remote/ErrorHandler.java:68: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1800: public ErrorHandler(ErrorCodes codes, boolean includeServerErrors) {1801: ^1802: java/src/org/openqa/selenium/remote/Response.java:97: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1803: ErrorCodes errorCodes = new ErrorCodes();1804: ^1805: java/src/org/openqa/selenium/remote/Response.java:97: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1806: ErrorCodes errorCodes = new ErrorCodes();1807: ^1808: java/src/org/openqa/selenium/remote/ProtocolHandshake.java:181: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1809: response.setStatus(ErrorCodes.SUCCESS);1810: ^1811: java/src/org/openqa/selenium/remote/ProtocolHandshake.java:182: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1812: response.setState(ErrorCodes.SUCCESS_STRING);1813: ^1814: java/src/org/openqa/selenium/remote/W3CHandshakeResponse.java:53: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1815: new ErrorCodes().toStatus((String) rawError, Optional.of(tuple.getStatusCode())));1816: ^1817: java/src/org/openqa/selenium/remote/W3CHandshakeResponse.java:56: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1818: new ErrorCodes().getExceptionType((String) rawError);1819: ^1820: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:44: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1821: private final ErrorCodes errorCodes = new ErrorCodes();1822: ^1823: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:44: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1824: private final ErrorCodes errorCodes = new ErrorCodes();1825: ^1826: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:55: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1827: int status = response.getStatus() == ErrorCodes.SUCCESS ? HTTP_OK : HTTP_INTERNAL_ERROR;1828: ^1829: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:101: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1830: response.setStatus(ErrorCodes.UNKNOWN_COMMAND);1831: ^1832: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:103: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1833: response.setStatus(ErrorCodes.UNHANDLED_ERROR);1834: ^1835: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:117: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1836: response.setStatus(ErrorCodes.SUCCESS);1837: ^1838: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:118: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1839: response.setState(errorCodes.toState(ErrorCodes.SUCCESS));1840: ^1841: java/src/org/openqa/selenium/remote/codec/AbstractHttpResponseCodec.java:124: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1842: response.setState(errorCodes.toState(ErrorCodes.SUCCESS));1843: ^1844: java/src/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodec.java:70: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1845: private final ErrorCodes errorCodes = new ErrorCodes();1846: ^1847: java/src/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodec.java:70: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1848: private final ErrorCodes errorCodes = new ErrorCodes();1849: ^1850: java/src/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodec.java:93: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1851: response.setStatus(ErrorCodes.UNKNOWN_COMMAND);1852: ^1853: java/src/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodec.java:98: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1854: response.setStatus(ErrorCodes.UNHANDLED_ERROR);1855: ^1856: java/src/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodec.java:145: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal1857: response.setStatus(ErrorCodes.SUCCESS);
...
1928: (10:14:48) �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/grid/data:NodeStatusTest (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/java/test/org/openqa/selenium/grid/data/NodeStatusTest/test_attempts/attempt_1.log)1929: (10:14:50) �[32mAnalyzing:�[0m 2076 targets (1618 packages loaded, 54577 targets configured)1930: �[32m[11,312 / 12,320]�[0m 115 / 1742 tests;�[0m Testing //java/test/org/openqa/selenium/grid/data:NodeStatusTest; 4s remote, remote-cache ... (41 actions, 1 running)1931: (10:14:55) �[32mAnalyzing:�[0m 2076 targets (1618 packages loaded, 56261 targets configured)1932: �[32m[11,336 / 12,501]�[0m 123 / 1762 tests;�[0m Testing //java/test/org/openqa/selenium/grid/data:NodeStatusTest; 9s remote, remote-cache ... (50 actions, 7 running)1933: (10:15:01) �[32mAnalyzing:�[0m 2076 targets (1618 packages loaded, 56261 targets configured)1934: �[32m[11,356 / 12,623]�[0m 127 / 1777 tests;�[0m Testing //java/test/org/openqa/selenium/grid/data:NodeStatusTest; 15s remote, remote-cache ... (50 actions, 8 running)1935: (10:15:05) �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/grid/data:NodeStatusTest (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/java/test/org/openqa/selenium/grid/data/NodeStatusTest/test.log)1936: �[31m�[1mFAILED: �[0m//java/test/org/openqa/selenium/grid/data:NodeStatusTest (Summary)
...
1972: "cheese": "brie"1973: }1974: }1975: ],1976: "version": "4.0.0"1977: }1978: Failures: 11979: 1) ensureRoundTripWorks() (org.openqa.selenium.grid.data.NodeStatusTest)1980: org.opentest4j.AssertionFailedError:
...
2018: "cheese": "brie"2019: }2020: }2021: ],2022: "version": "4.0.0"2023: }2024: Failures: 12025: 1) ensureRoundTripWorks() (org.openqa.selenium.grid.data.NodeStatusTest)2026: org.opentest4j.AssertionFailedError: 2027: expected: "org.openqa.selenium.grid.data.NodeStatus@716a689d (NodeStatus@4fb3ee4e)"2028: but was: "org.openqa.selenium.grid.data.NodeStatus@716a689d (NodeStatus@f5acb9d)"2029: at org.openqa.selenium.grid.data.NodeStatusTest.ensureRoundTripWorks(NodeStatusTest.java:73)2030: Execution result: https://gypsum.cluster.engflow.com/actions/executions/ChCgHfMQ0UNCiqLjEC0JFA-PEgdkZWZhdWx0GiUKIOng-oIlKl_dqwRO7zrCkAq877z5VvCW_qn1wWcUW8wBEJ8D2031: ================================================================================2032: (10:15:06) �[32mINFO: �[0mFrom Building java/test/org/openqa/selenium/remote/libsmall-tests-test-lib.jar (5 source files) and running annotation processors (AutoServiceProcessor):2033: java/test/org/openqa/selenium/remote/WebDriverFixture.java:170: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2034: response.setStatus(new ErrorCodes().toStatus(state, Optional.of(400)));2035: ^2036: (10:15:06) �[32mAnalyzing:�[0m 2076 targets (1621 packages loaded, 57719 targets configured)2037: �[32m[11,368 / 12,892]�[0m 134 / 1843 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 14s remote, remote-cache ... (50 actions, 12 running)2038: (10:15:09) �[32mINFO: �[0mFrom Building java/test/org/openqa/selenium/json/JsonTest.jar (1 source file):2039: java/test/org/openqa/selenium/json/JsonTest.java:430: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2040: assertThat(response.getState()).isEqualTo(new ErrorCodes().toState(0));2041: ^2042: java/test/org/openqa/selenium/json/JsonTest.java:441: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2043: assertThat(response.getState()).isEqualTo(new ErrorCodes().toState(0));2044: ^2045: java/test/org/openqa/selenium/json/JsonTest.java:454: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2046: assertThat(response.getState()).isEqualTo(new ErrorCodes().toState(32));2047: ^2048: (10:15:09) �[32mINFO: �[0mFrom Building java/test/org/openqa/selenium/remote/RemotableByTest.jar (1 source file) and running annotation processors (AutoServiceProcessor):2049: java/test/org/openqa/selenium/remote/RemotableByTest.java:23: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2050: import static org.openqa.selenium.remote.ErrorCodes.SUCCESS_STRING;2051: ^2052: java/test/org/openqa/selenium/remote/RemotableByTest.java:23: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2053: import static org.openqa.selenium.remote.ErrorCodes.SUCCESS_STRING;2054: ^2055: java/test/org/openqa/selenium/remote/RemotableByTest.java:23: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2056: import static org.openqa.selenium.remote.ErrorCodes.SUCCESS_STRING;2057: ^2058: java/test/org/openqa/selenium/remote/RemotableByTest.java:45: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2059: private final ErrorCodes errorCodes = new ErrorCodes();2060: ^2061: java/test/org/openqa/selenium/remote/RemotableByTest.java:45: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2062: private final ErrorCodes errorCodes = new ErrorCodes();2063: ^2064: java/test/org/openqa/selenium/remote/RemotableByTest.java:45: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2065: private final ErrorCodes errorCodes = new ErrorCodes();2066: ^2067: java/test/org/openqa/selenium/remote/RemotableByTest.java:45: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2068: private final ErrorCodes errorCodes = new ErrorCodes();2069: ^2070: (10:15:10) �[32mINFO: �[0mFrom Building java/test/org/openqa/selenium/remote/ErrorHandlerTest.jar (1 source file) and running annotation processors (AutoServiceProcessor):2071: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:79: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2072: handler.throwIfResponseFailed(createResponse(ErrorCodes.SUCCESS), 100);2073: ^2074: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:85: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2075: assertThrowsCorrectExceptionType(ErrorCodes.NO_SUCH_WINDOW, NoSuchWindowException.class);2076: ^2077: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:86: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2078: assertThrowsCorrectExceptionType(ErrorCodes.NO_SUCH_FRAME, NoSuchFrameException.class);2079: ^2080: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:87: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2081: assertThrowsCorrectExceptionType(ErrorCodes.NO_SUCH_ELEMENT, NoSuchElementException.class);2082: ^2083: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:88: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2084: assertThrowsCorrectExceptionType(ErrorCodes.UNKNOWN_COMMAND, UnsupportedCommandException.class);2085: ^2086: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:90: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2087: ErrorCodes.METHOD_NOT_ALLOWED, UnsupportedCommandException.class);2088: ^2089: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:92: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2090: ErrorCodes.STALE_ELEMENT_REFERENCE, StaleElementReferenceException.class);2091: ^2092: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:94: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2093: ErrorCodes.INVALID_ELEMENT_STATE, InvalidElementStateException.class);2094: ^2095: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:95: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2096: assertThrowsCorrectExceptionType(ErrorCodes.XPATH_LOOKUP_ERROR, InvalidSelectorException.class);2097: ^2098: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:107: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2099: Response response = createResponse(ErrorCodes.UNHANDLED_ERROR);2100: ^2101: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:120: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2102: createResponse(ErrorCodes.UNHANDLED_ERROR, "boom"), 123))2103: ^2104: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:133: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2105: createResponse(ErrorCodes.UNHANDLED_ERROR, ImmutableMap.of("message", "boom")),2106: ^2107: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:147: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2108: ErrorCodes.UNHANDLED_ERROR,2109: ^2110: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:167: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2111: ErrorCodes.UNHANDLED_ERROR,2112: ^2113: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:193: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2114: createResponse(ErrorCodes.UNHANDLED_ERROR, toMap(serverError)), 123))2115: ^2116: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:214: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2117: createResponse(ErrorCodes.UNHANDLED_ERROR, data), 123))2118: ^2119: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:248: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2120: createResponse(ErrorCodes.UNHANDLED_ERROR, data), 123))2121: ^2122: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:280: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2123: createResponse(ErrorCodes.UNHANDLED_ERROR, data), 123))2124: ^2125: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:308: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2126: createResponse(ErrorCodes.UNHANDLED_ERROR, data), 123))2127: ^2128: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:327: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2129: createResponse(ErrorCodes.UNHANDLED_ERROR, data), 123))2130: ^2131: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:355: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2132: createResponse(ErrorCodes.UNHANDLED_ERROR, data), 123))2133: ^2134: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:394: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2135: createResponse(ErrorCodes.UNHANDLED_ERROR, data), 123))2136: ^2137: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:426: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2138: createResponse(ErrorCodes.UNHANDLED_ERROR, toMap(serverError)), 123))2139: ^2140: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:435: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2141: exceptions.put(ErrorCodes.NO_SUCH_SESSION, NoSuchSessionException.class);2142: ^2143: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:436: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2144: exceptions.put(ErrorCodes.NO_SUCH_ELEMENT, NoSuchElementException.class);2145: ^2146: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:437: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2147: exceptions.put(ErrorCodes.NO_SUCH_FRAME, NoSuchFrameException.class);2148: ^2149: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:438: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2150: exceptions.put(ErrorCodes.UNKNOWN_COMMAND, UnsupportedCommandException.class);2151: ^2152: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:439: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2153: exceptions.put(ErrorCodes.STALE_ELEMENT_REFERENCE, StaleElementReferenceException.class);2154: ^2155: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:440: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2156: exceptions.put(ErrorCodes.INVALID_ELEMENT_STATE, InvalidElementStateException.class);2157: ^2158: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:441: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2159: exceptions.put(ErrorCodes.UNHANDLED_ERROR, WebDriverException.class);2160: ^2161: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:442: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2162: exceptions.put(ErrorCodes.JAVASCRIPT_ERROR, JavascriptException.class);2163: ^2164: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:443: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2165: exceptions.put(ErrorCodes.XPATH_LOOKUP_ERROR, InvalidSelectorException.class);2166: ^2167: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:444: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2168: exceptions.put(ErrorCodes.TIMEOUT, TimeoutException.class);2169: ^2170: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:445: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2171: exceptions.put(ErrorCodes.NO_SUCH_WINDOW, NoSuchWindowException.class);2172: ^2173: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:446: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2174: exceptions.put(ErrorCodes.INVALID_COOKIE_DOMAIN, InvalidCookieDomainException.class);2175: ^2176: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:447: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2177: exceptions.put(ErrorCodes.UNABLE_TO_SET_COOKIE, UnableToSetCookieException.class);2178: ^2179: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:448: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2180: exceptions.put(ErrorCodes.UNEXPECTED_ALERT_PRESENT, UnhandledAlertException.class);2181: ^2182: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:449: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2183: exceptions.put(ErrorCodes.NO_ALERT_PRESENT, NoAlertPresentException.class);2184: ^2185: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:450: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2186: exceptions.put(ErrorCodes.ASYNC_SCRIPT_TIMEOUT, ScriptTimeoutException.class);2187: ^2188: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:451: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2189: exceptions.put(ErrorCodes.INVALID_SELECTOR_ERROR, InvalidSelectorException.class);2190: ^2191: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:452: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2192: exceptions.put(ErrorCodes.SESSION_NOT_CREATED, SessionNotCreatedException.class);2193: ^2194: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:453: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2195: exceptions.put(ErrorCodes.MOVE_TARGET_OUT_OF_BOUNDS, MoveTargetOutOfBoundsException.class);2196: ^2197: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:454: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2198: exceptions.put(ErrorCodes.INVALID_XPATH_SELECTOR, InvalidSelectorException.class);2199: ^2200: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:455: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2201: exceptions.put(ErrorCodes.INVALID_XPATH_SELECTOR_RETURN_TYPER, InvalidSelectorException.class);2202: ^2203: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:469: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2204: ? ErrorCodes.INVALID_SELECTOR_ERROR2205: ^2206: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:471: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2207: assertThat(new ErrorCodes().toStatusCode(e)).isEqualTo(expected);2208: ^2209: java/test/org/openqa/selenium/remote/ErrorHandlerTest.java:483: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2210: response.setState(new ErrorCodes().toState(status));2211: ^2212: (10:15:10) �[32mINFO: �[0mFrom Building java/test/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodecTest.jar (1 source file):2213: java/test/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodecTest.java:26: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2214: import static org.openqa.selenium.remote.ErrorCodes.METHOD_NOT_ALLOWED;2215: ^2216: java/test/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodecTest.java:55: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2217: assertThat(decoded.getStatus()).isEqualTo(ErrorCodes.SUCCESS);2218: ^2219: java/test/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodecTest.java:81: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2220: assertThat(decoded.getStatus()).isEqualTo(ErrorCodes.UNHANDLED_ERROR);2221: ^2222: java/test/org/openqa/selenium/remote/codec/w3c/W3CHttpResponseCodecTest.java:107: warning: [removal] ErrorCodes in org.openqa.selenium.remote has been deprecated and marked for removal2223: assertThat(decoded.getStatus()).isEqualTo(ErrorCodes.UNHANDLED_ERROR);2224: ^2225: (10:15:11) �[32mAnalyzing:�[0m 2076 targets (1628 packages loaded, 60943 targets configured)2226: �[32m[11,619 / 13,144]�[0m 164 / 1843 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 19s remote, remote-cache ... (49 actions, 15 running)2227: (10:15:16) �[32mAnalyzing:�[0m 2076 targets (1629 packages loaded, 61229 targets configured)2228: �[32m[11,876 / 13,461]�[0m 203 / 1903 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 24s remote, remote-cache ... (45 actions, 17 running)2229: (10:15:21) �[32mAnalyzing:�[0m 2076 targets (1629 packages loaded, 61245 targets configured)2230: �[32m[11,925 / 13,582]�[0m 210 / 1917 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 29s remote, remote-cache ... (46 actions, 18 running)2231: (10:15:26) �[32mAnalyzing:�[0m 2076 targets (1629 packages loaded, 61268 targets configured)2232: �[32m[12,071 / 13,825]�[0m 234 / 1942 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 34s remote, remote-cache ... (49 actions, 20 running)
...
2251: ^2252: java/test/org/openqa/selenium/remote/http/FormEncodedDataTest.java:101: warning: [removal] FormEncodedData in org.openqa.selenium.remote.http has been deprecated and marked for removal2253: Optional<Map<String, List<String>>> data = FormEncodedData.getData(request);2254: ^2255: java/test/org/openqa/selenium/remote/http/FormEncodedDataTest.java:113: warning: [removal] FormEncodedData in org.openqa.selenium.remote.http has been deprecated and marked for removal2256: Optional<Map<String, List<String>>> data = FormEncodedData.getData(request);2257: ^2258: (10:15:31) �[32mAnalyzing:�[0m 2076 targets (1629 packages loaded, 61314 targets configured)2259: �[32m[12,331 / 14,173]�[0m 292 / 1988 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 39s remote, remote-cache ... (49 actions, 22 running)2260: (10:15:36) �[32mAnalyzing:�[0m 2076 targets (1629 packages loaded, 61371 targets configured)2261: �[32m[12,499 / 14,310]�[0m 396 / 2045 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 44s remote, remote-cache ... (50 actions, 23 running)2262: (10:15:38) �[31m�[1mFAIL: �[0m//py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py/test_attempts/attempt_1.log)2263: (10:15:39) �[32mINFO: �[0mAnalyzed 2076 targets (1629 packages loaded, 61402 targets configured).2264: (10:15:41) �[32m[12,661 / 14,438]�[0m 478 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-edge-bidi-test/selenium/webdriver/common/script_pinning_tests.py; 49s remote, remote-cache ... (49 actions, 22 running)2265: (10:15:46) �[32m[12,809 / 14,502]�[0m 574 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 53s remote, remote-cache ... (50 actions, 24 running)2266: (10:15:51) �[32m[12,874 / 14,547]�[0m 603 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 58s remote, remote-cache ... (50 actions, 27 running)2267: (10:16:00) �[32m[12,874 / 14,547]�[0m 603 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 66s remote, remote-cache ... (50 actions, 27 running)2268: (10:16:06) �[32m[12,875 / 14,547]�[0m 604 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 73s remote, remote-cache ... (50 actions, 27 running)2269: (10:16:11) �[32m[12,879 / 14,547]�[0m 608 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 78s remote, remote-cache ... (50 actions, 27 running)2270: (10:16:16) �[32m[12,879 / 14,547]�[0m 608 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 83s remote, remote-cache ... (50 actions, 30 running)2271: (10:16:21) �[32m[12,879 / 14,547]�[0m 608 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 88s remote, remote-cache ... (50 actions, 32 running)2272: (10:16:27) �[32m[12,898 / 14,556]�[0m 615 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 93s remote, remote-cache ... (50 actions, 32 running)2273: (10:16:32) �[32m[12,899 / 14,556]�[0m 616 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 99s remote, remote-cache ... (50 actions, 32 running)2274: (10:16:33) �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/grid/router:RouterTest (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/java/test/org/openqa/selenium/grid/router/RouterTest/test_attempts/attempt_1.log)2275: (10:16:35) �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/chrome:ChromeOptionsFunctionalTest (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest/test_attempts/attempt_1.log)2276: (10:16:38) �[32m[12,906 / 14,556]�[0m 623 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 105s remote, remote-cache ... (50 actions, 34 running)2277: (10:16:44) �[32m[12,922 / 14,559]�[0m 635 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 111s remote, remote-cache ... (50 actions, 35 running)2278: (10:16:49) �[32m[12,930 / 14,562]�[0m 639 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 116s remote, remote-cache ... (50 actions, 40 running)2279: (10:16:53) �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/chrome:ChromeOptionsFunctionalTest-remote (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest-remote/test_attempts/attempt_1.log)2280: (10:16:56) �[32m[12,968 / 14,568]�[0m 670 / 2076 tests, �[31m�[1m1 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 123s remote, remote-cache ... (50 actions, 39 running)2281: (10:16:57) �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/grid/router:RouterTest (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/java/test/org/openqa/selenium/grid/router/RouterTest/test.log)2282: �[31m�[1mFAILED: �[0m//java/test/org/openqa/selenium/grid/router:RouterTest (Summary)
...
2321: [Capabilities {browser: chrome}]2322: Oct 15, 2024 10:16:33 AM org.openqa.selenium.grid.node.local.LocalNode newSession2323: INFO: Session created by the Node. Id: 7ebf85eb-6acc-4e19-9b40-585c1e669b28, Caps: Capabilities {browser: chrome, se:bidiEnabled: false, se:cdpEnabled: false}2324: Oct 15, 2024 10:16:33 AM org.openqa.selenium.grid.distributor.local.LocalDistributor newSession2325: INFO: Session created by the Distributor. Id: 7ebf85eb-6acc-4e19-9b40-585c1e669b28 2326: Caps: Capabilities {browser: chrome, se:bidiEnabled: false, se:cdpEnabled: false}2327: Failures: 12328: 1) shouldListAllNodesTheDistributorIsAwareOf() (org.openqa.selenium.grid.router.RouterTest)2329: org.opentest4j.AssertionFailedError: expected: not equal but was: <null>
...
2374: [Capabilities {browser: chrome}]2375: Oct 15, 2024 10:16:57 AM org.openqa.selenium.grid.node.local.LocalNode newSession2376: INFO: Session created by the Node. Id: 9f4e2b46-205f-4b45-b6ff-4a0c110ecd3d, Caps: Capabilities {browser: chrome, se:bidiEnabled: false, se:cdpEnabled: false}2377: Oct 15, 2024 10:16:57 AM org.openqa.selenium.grid.distributor.local.LocalDistributor newSession2378: INFO: Session created by the Distributor. Id: 9f4e2b46-205f-4b45-b6ff-4a0c110ecd3d 2379: Caps: Capabilities {browser: chrome, se:bidiEnabled: false, se:cdpEnabled: false}2380: Failures: 12381: 1) shouldListAllNodesTheDistributorIsAwareOf() (org.openqa.selenium.grid.router.RouterTest)2382: org.opentest4j.AssertionFailedError: expected: not equal but was: <null>
...
2384: at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)2385: at org.junit.jupiter.api.AssertNotEquals.failEqual(AssertNotEquals.java:277)2386: at org.junit.jupiter.api.AssertNotEquals.assertNotEquals(AssertNotEquals.java:263)2387: at org.junit.jupiter.api.AssertNotEquals.assertNotEquals(AssertNotEquals.java:258)2388: at org.junit.jupiter.api.Assertions.assertNotEquals(Assertions.java:2819)2389: at org.openqa.selenium.grid.router.RouterTest.shouldListAllNodesTheDistributorIsAwareOf(RouterTest.java:235)2390: Execution result: https://gypsum.cluster.engflow.com/actions/executions/ChCgHfMQ0UNCiqLjEC0JFA-PEgdkZWZhdWx0GiUKIIiaxaXr5Tuoad2SE7FjvxlJ147gw2X0LQxNcqObCGfVEJ8D2391: ================================================================================2392: (10:17:01) �[32m[13,097 / 14,713]�[0m 678 / 2076 tests, �[31m�[1m2 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 128s remote, remote-cache ... (50 actions, 45 running)2393: (10:17:07) �[32m[13,098 / 14,713]�[0m 679 / 2076 tests, �[31m�[1m2 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 133s remote, remote-cache ... (50 actions, 46 running)2394: (10:17:12) �[32m[13,150 / 14,731]�[0m 707 / 2076 tests, �[31m�[1m2 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 138s remote, remote-cache ... (50 actions, 45 running)2395: (10:17:17) �[32m[13,199 / 14,746]�[0m 736 / 2076 tests, �[31m�[1m2 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 143s remote, remote-cache ... (50 actions, 45 running)2396: (10:17:19) �[31m�[1mFAIL: �[0m//java/test/org/openqa/selenium/chrome:ChromeOptionsFunctionalTest-remote (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/java/test/org/openqa/selenium/chrome/ChromeOptionsFunctionalTest-remote/test.log)2397: �[31m�[1mFAILED: �[0m//java/test/org/openqa/selenium/chrome:ChromeOptionsFunctionalTest-remote (Summary)
...
2473: 10:16:52.335 INFO [ProxyNodeWebsockets.createWsEndPoint] - Establishing connection to ws://localhost:18662/session/dd524df716e78dfd84f50b13ca80b1202474: 10:16:52.653 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: dd524df716e78dfd84f50b13ca80b1202475: 10:16:52.654 INFO [GridModel.release] - Releasing slot for session id dd524df716e78dfd84f50b13ca80b1202476: 10:16:52.654 INFO [SessionSlot.stop] - Stopping session dd524df716e78dfd84f50b13ca80b1202477: Failures: 22478: 1) canAddExtensionFromStringEncodedInBase64() (org.openqa.selenium.chrome.ChromeOptionsFunctionalTest)2479: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"#webextensions\-selenium\-example"}2480: (Session info: chrome=129.0.6668.89)2481: For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
...
2485: Command: [db795234be460c7937d5683a0bf4b0c8, findElement {using=id, value=webextensions-selenium-example}]2486: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 129.0.6668.89, chrome: {chromedriverVersion: 129.0.6668.89 (951c0b97221f..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:45503}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://127.0.0.1:14391/sessio..., se:cdpVersion: 129.0.6668.89, se:gridWebSocketUrl: ws://localhost:5401/session..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webSocketUrl: ws://127.0.0.1:14391/sessio..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}2487: Session ID: db795234be460c7937d5683a0bf4b0c82488: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)2489: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)2490: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)2491: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)2492: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)2493: at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
...
2499: at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165)2500: at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:66)2501: at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:368)2502: at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:362)2503: at org.openqa.selenium.chrome.ChromeOptionsFunctionalTest.canAddExtensionFromStringEncodedInBase64(ChromeOptionsFunctionalTest.java:104)2504: 2) canAddExtensionFromFile() (org.openqa.selenium.chrome.ChromeOptionsFunctionalTest)2505: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"#webextensions\-selenium\-example"}2506: (Session info: chrome=129.0.6668.89)2507: For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
...
2511: Command: [e9380bdb92cf98d3871a9672052734ec, findElement {using=id, value=webextensions-selenium-example}]2512: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 129.0.6668.89, chrome: {chromedriverVersion: 129.0.6668.89 (951c0b97221f..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:36725}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://127.0.0.1:14391/sessio..., se:cdpVersion: 129.0.6668.89, se:gridWebSocketUrl: ws://localhost:7147/session..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webSocketUrl: ws://127.0.0.1:14391/sessio..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}2513: Session ID: e9380bdb92cf98d3871a9672052734ec2514: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)2515: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)2516: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)2517: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)2518: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)2519: at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
...
2604: 10:17:18.314 INFO [ProxyNodeWebsockets.createWsEndPoint] - Establishing connection to ws://localhost:2967/session/fc753cf92df3596262dd66f33fdefbd32605: 10:17:18.490 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: fc753cf92df3596262dd66f33fdefbd32606: 10:17:18.490 INFO [GridModel.release] - Releasing slot for session id fc753cf92df3596262dd66f33fdefbd32607: 10:17:18.491 INFO [SessionSlot.stop] - Stopping session fc753cf92df3596262dd66f33fdefbd32608: Failures: 22609: 1) canAddExtensionFromStringEncodedInBase64() (org.openqa.selenium.chrome.ChromeOptionsFunctionalTest)2610: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"#webextensions\-selenium\-example"}2611: (Session info: chrome=129.0.6668.89)2612: For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
...
2616: Command: [9140eace07f3218da5f022c7c00635fb, findElement {value=webextensions-selenium-example, using=id}]2617: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 129.0.6668.89, chrome: {chromedriverVersion: 129.0.6668.89 (951c0b97221f..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:44165}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://127.0.0.1:22410/sessio..., se:cdpVersion: 129.0.6668.89, se:gridWebSocketUrl: ws://localhost:28808/sessio..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webSocketUrl: ws://127.0.0.1:22410/sessio..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}2618: Session ID: 9140eace07f3218da5f022c7c00635fb2619: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)2620: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)2621: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)2622: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)2623: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)2624: at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
...
2630: at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165)2631: at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:66)2632: at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:368)2633: at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:362)2634: at org.openqa.selenium.chrome.ChromeOptionsFunctionalTest.canAddExtensionFromStringEncodedInBase64(ChromeOptionsFunctionalTest.java:104)2635: 2) canAddExtensionFromFile() (org.openqa.selenium.chrome.ChromeOptionsFunctionalTest)2636: org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"css selector","selector":"#webextensions\-selenium\-example"}2637: (Session info: chrome=129.0.6668.89)2638: For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
...
2642: Command: [528de14388f1468bc09a18ca282c2798, findElement {value=webextensions-selenium-example, using=id}]2643: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 129.0.6668.89, chrome: {chromedriverVersion: 129.0.6668.89 (951c0b97221f..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:43445}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:cdp: ws://127.0.0.1:22410/sessio..., se:cdpVersion: 129.0.6668.89, se:gridWebSocketUrl: ws://localhost:23256/sessio..., setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: ignore, webSocketUrl: ws://127.0.0.1:22410/sessio..., webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}2644: Session ID: 528de14388f1468bc09a18ca282c27982645: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)2646: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)2647: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)2648: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)2649: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)2650: at org.openqa.selenium.remote.ErrorCodec.decode(ErrorCodec.java:167)
...
2655: at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)2656: at org.openqa.selenium.remote.ElementLocation$ElementFinder$2.findElement(ElementLocation.java:165)2657: at org.openqa.selenium.remote.ElementLocation.findElement(ElementLocation.java:66)2658: at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:368)2659: at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:362)2660: at org.openqa.selenium.chrome.ChromeOptionsFunctionalTest.canAddExtensionFromFile(ChromeOptionsFunctionalTest.java:88)2661: Execution result: https://gypsum.cluster.engflow.com/actions/executions/ChCgHfMQ0UNCiqLjEC0JFA-PEgdkZWZhdWx0GiUKIHTMqAmemEcXLaLLtKUgmGA6W6JbUaTrNrYEhjhdjTkUEJ8D2662: ================================================================================2663: (10:17:22) �[32m[13,293 / 14,794]�[0m 787 / 2076 tests, �[31m�[1m3 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 149s remote, remote-cache ... (50 actions, 47 running)2664: (10:17:27) �[32m[13,523 / 14,985]�[0m 857 / 2076 tests, �[31m�[1m3 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 154s remote, remote-cache ... (50 actions, 43 running)2665: (10:17:35) �[32m[13,597 / 15,004]�[0m 910 / 2076 tests, �[31m�[1m3 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 161s remote, remote-cache ... (50 actions, 45 running)2666: (10:17:40) �[32m[13,689 / 15,104]�[0m 926 / 2076 tests, �[31m�[1m3 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 166s remote, remote-cache ... (50 actions, 45 running)2667: (10:17:45) �[32m[13,758 / 15,179]�[0m 931 / 2076 tests, �[31m�[1m3 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 171s remote, remote-cache ... (50 actions, 45 running)2668: (10:17:50) �[32m[13,759 / 15,179]�[0m 932 / 2076 tests, �[31m�[1m3 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 176s remote, remote-cache ... (50 actions, 47 running)2669: (10:17:55) �[32m[13,774 / 15,185]�[0m 939 / 2076 tests, �[31m�[1m3 failed�[0m;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py; 182s remote, remote-cache ... (50 actions, 46 running)2670: (10:17:58) �[31m�[1mFAIL: �[0m//py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py (see /home/runner/.bazel/execroot/_main/bazel-out/k8-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py/test.log)2671: ==================== Test output for //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py:2672: �[31m�[1mFAILED: �[0m//py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py (Summary)2673: ============================= test session starts ==============================2674: platform linux -- Python 3.8.19, pytest-7.4.4, pluggy-1.3.02675: rootdir: /mnt/engflow/worker/work/0/exec/bazel-out/k8-fastbuild/bin/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py.runfiles/_main/py2676: configfile: pyproject.toml2677: plugins: instafail-0.5.0, trio-0.8.0, mock-3.12.02678: collected 4 items2679: py/test/selenium/webdriver/common/bidi_tests.py::test_check_console_messages[chrome] PASSED [ 25%]2680: py/test/selenium/webdriver/common/bidi_tests.py::test_check_error_console_messages[chrome] PASSED [ 50%]2681: py/test/selenium/webdriver/common/bidi_tests.py::test_collect_js_exceptions[chrome] PASSED [ 75%]2682: py/test/selenium/webdriver/common/bidi_tests.py::test_collect_log_mutations[chrome] FAILED [100%]
...
2700: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2701: ../rules_python~~python~python_3_8_x86_64-unknown-linux-gnu/lib/python3.8/contextlib.py:178: in __aexit__2702: await self.gen.__anext__()2703: py/selenium/webdriver/common/log.py:93: in mutation_events2704: elements: list = self.driver.find_elements(By.CSS_SELECTOR, f"*[data-__webdriver_id={payload['target']}]")2705: py/selenium/webdriver/remote/webdriver.py:778: in find_elements2706: return self.execute(Command.FIND_ELEMENTS, {"using": by, "value": value})["value"] or []2707: py/selenium/webdriver/remote/webdriver.py:354: in execute2708: self.error_handler.check_response(response)2709: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2710: self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x7fb5af76a820>2711: response = {'status': 400, 'value': '{"value":{"error":"invalid selector","message":"invalid selector\\nfrom javascript error: {\...wn>\\n#19 0x562d712c50f3 \\u003Cunknown>\\n#20 0x562d712d4e7c \\u003Cunknown>\\n#21 0x7f7384d98609 start_thread\\n"}}'}2712: def check_response(self, response: Dict[str, Any]) -> None:2713: """Checks that a JSON response from the WebDriver does not have an2714: error.2715: :Args:2716: - response - The JSON response from the WebDriver server as a dictionary2717: object.2718: :Raises: If the response contains an error message.2719: """2720: status = response.get("status", None)2721: if not status or status == ErrorCode.SUCCESS:
...
2727: if isinstance(status, int):2728: value_json = response.get("value", None)2729: if value_json and isinstance(value_json, str):2730: import json2731: try:2732: value = json.loads(value_json)2733: if len(value) == 1:2734: value = value["value"]2735: status = value.get("error", None)2736: if not status:2737: status = value.get("status", ErrorCode.UNKNOWN_ERROR)2738: message = value.get("value") or value.get("message")2739: if not isinstance(message, str):2740: value = message2741: message = message.get("message")2742: else:2743: message = value.get("message", None)2744: except ValueError:2745: pass2746: exception_class: Type[WebDriverException]2747: e = ErrorCode()2748: error_codes = [item for item in dir(e) if not item.startswith("__")]2749: for error_code in error_codes:2750: error_info = getattr(ErrorCode, error_code)2751: if isinstance(error_info, list) and status in error_info:2752: exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
...
2776: if line:2777: file = f"{file}:{line}"2778: meth = frame.get("methodName", "<anonymous>")2779: if "className" in frame:2780: meth = f"{frame['className']}.{meth}"2781: msg = " at %s (%s)"2782: msg = msg % (meth, file)2783: stacktrace.append(msg)2784: except TypeError:
...
2787: alert_text = None2788: if "data" in value:2789: alert_text = value["data"].get("text")2790: elif "alert" in value:2791: alert_text = value["alert"].get("text")2792: raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here2793: > raise exception_class(message, screen, stacktrace)2794: E selenium.common.exceptions.InvalidSelectorException: Message: invalid selector2795: E from javascript error: {"status":32,"value":"An invalid or illegal selector was specified"}2796: E (Session info: chrome=129.0.6668.89); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#invalid-selector-exception
...
2812: E #14 0x562d712a49b1 <unknown>2813: E #15 0x562d7128d225 <unknown>2814: E #16 0x562d712a5532 <unknown>2815: E #17 0x562d7127238f <unknown>2816: E #18 0x562d712c4f28 <unknown>2817: E #19 0x562d712c50f3 <unknown>2818: E #20 0x562d712d4e7c <unknown>2819: E #21 0x7f7384d98609 start_thread2820: py/selenium/webdriver/remote/errorhandler.py:229: InvalidSelectorException2821: =========================== short test summary info ============================2822: FAILED py/test/selenium/webdriver/common/bidi_tests.py::test_collect_log_mutations[chrome] - selenium.common.exceptions.InvalidSelectorException: Message: invalid selector2823: from javascript error: {"status":32,"value":"An invalid or illegal selector was specified"}2824: (Session info: chrome=129.0.6668.89); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#invalid-selector-exception
...
2840: #14 0x562d712a49b1 <unknown>2841: #15 0x562d7128d225 <unknown>2842: #16 0x562d712a5532 <unknown>2843: #17 0x562d7127238f <unknown>2844: #18 0x562d712c4f28 <unknown>2845: #19 0x562d712c50f3 <unknown>2846: #20 0x562d712d4e7c <unknown>2847: #21 0x7f7384d98609 start_thread2848: ========================= 1 failed, 3 passed in 6.71s ==========================
...
2851: ==================== Test output for //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py:2852: ============================= test session starts ==============================2853: platform linux -- Python 3.8.19, pytest-7.4.4, pluggy-1.3.02854: rootdir: /mnt/engflow/worker/work/1/exec/bazel-out/k8-fastbuild/bin/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_tests.py.runfiles/_main/py2855: configfile: pyproject.toml2856: plugins: instafail-0.5.0, trio-0.8.0, mock-3.12.02857: collected 4 items2858: py/test/selenium/webdriver/common/bidi_tests.py::test_check_console_messages[chrome] PASSED [ 25%]2859: py/test/selenium/webdriver/common/bidi_tests.py::test_check_error_console_messages[chrome] PASSED [ 50%]2860: py/test/selenium/webdriver/common/bidi_tests.py::test_collect_js_exceptions[chrome] PASSED [ 75%]2861: py/test/selenium/webdriver/common/bidi_tests.py::test_collect_log_mutations[chrome] FAILED [100%]
...
2879: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 2880: ../rules_python~~python~python_3_8_x86_64-unknown-linux-gnu/lib/python3.8/contextlib.py:178: in __aexit__2881: await self.gen.__anext__()2882: py/selenium/webdriver/common/log.py:93: in mutation_events2883: elements: list = self.driver.find_elements(By.CSS_SELECTOR, f"*[data-__webdriver_id={payload['target']}]")2884: py/selenium/...
VietND96
changed the title
[py] Remote connection throws resp statuscode when data is empty
[py] Remote connection throws resp status code when data is empty
Oct 15, 2024
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
By a chance establish remote connection to Grid that requires basic auth. The exception without Message, e.g
Adding explicit message for status 401
Also, return the code status in case the response data is empty, so we have at least a status code to guess the issue instead of an empty Message.
After fixed:
Types of changes
Checklist
PR Type
bug_fix, enhancement
Description
Changes walkthrough 📝
remote_connection.py
Improve error handling for remote connection responses
py/selenium/webdriver/remote/remote_connection.py