Skip to content

Conversation

@joerg1985
Copy link
Member

@joerg1985 joerg1985 commented Dec 4, 2025

User description

🔗 Related Issues

Improves the error message to better debug #16389

💥 What does this PR do?

Avoid the unchecked cast and fail with a WebDriverException as this should be a driver issue.

🔧 Implementation Notes

💡 Additional Considerations

🔄 Types of changes

  • General improvement

PR Type

Bug fix


Description

  • Removes unchecked casts that could cause ClassCastException

  • Validates driver response is WebElement before processing

  • Throws WebDriverException with helpful hint on invalid response

  • Improves error debugging for unexpected driver responses


Diagram Walkthrough

flowchart LR
  A["Driver Response"] --> B["Type Check"]
  B --> C{Is WebElement?}
  C -->|Yes| D["Process Element"]
  C -->|No| E["Throw WebDriverException<br/>with hint"]
Loading

File Walkthrough

Relevant files
Bug fix
ElementLocation.java
Add type validation and error handling for driver responses

java/src/org/openqa/selenium/remote/ElementLocation.java

  • Removed unchecked cast (WebElement) in findElement() method
  • Changed List cast to List in findElements() method
  • Enhanced massage() method to validate response is WebElement instance
  • Added detailed error handling with hint generation for invalid
    responses
+18/-5   

@selenium-ci selenium-ci added the C-java Java Bindings label Dec 4, 2025
@qodo-code-review
Copy link
Contributor

PR Compliance Guide 🔍

Below is a summary of compliance checks for this PR:

Security Compliance
🟢
No security concerns identified No security vulnerabilities detected by AI analysis. Human verification advised for critical code.
Ticket Compliance
🎫 No ticket provided
  • Create ticket/issue
Codebase Duplication Compliance
Codebase context is not defined

Follow the guide to enable codebase context checks.

Custom Compliance
🟢
Generic: Meaningful Naming and Self-Documenting Code

Objective: Ensure all identifiers clearly express their purpose and intent, making code
self-documenting

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Robust Error Handling and Edge Case Management

Objective: Ensure comprehensive error handling that provides meaningful context and graceful
degradation

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Error Handling

Objective: To prevent the leakage of sensitive system information through error messages while
providing sufficient detail for internal debugging.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Secure Logging Practices

Objective: To ensure logs are useful for debugging and auditing without exposing sensitive
information like PII, PHI, or cardholder data.

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Security-First Input Validation and Data Handling

Objective: Ensure all data inputs are validated, sanitized, and handled securely to prevent
vulnerabilities

Status: Passed

Learn more about managing compliance generic rules or creating your own custom rules

Generic: Comprehensive Audit Trails

Objective: To create a detailed and reliable record of critical system actions for security analysis
and compliance.

Status:
Missing audit logs: The new error path throwing WebDriverException on unexpected driver responses does not add
any audit logging for this critical action, making it unclear who/what triggered it and
with what locator.

Referred Code
protected WebElement massage(
    RemoteWebDriver driver, SearchContext context, Object element, By locator) {
  if (!(element instanceof WebElement)) {
    String hint;

    if (element instanceof Map<?, ?>) {
      hint = ((Map<?, ?>) element).keySet().toString();
    } else if (element != null) {
      hint = element.getClass().getName();
    } else {
      hint = "null";
    }

    throw new WebDriverException("unexpected driver response: " + hint);
  } else if (!(element instanceof RemoteWebElement)) {
    return (WebElement) element;
  }

Learn more about managing compliance generic rules or creating your own custom rules

Compliance status legend 🟢 - Fully Compliant
🟡 - Partial Compliant
🔴 - Not Compliant
⚪ - Requires Further Human Verification
🏷️ - Compliance label

@qodo-code-review
Copy link
Contributor

PR Code Suggestions ✨

No code suggestions found for the PR.

@qodo-code-review
Copy link
Contributor

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: Python / Browser Tests (chrome, windows) / Integration Tests (chrome, windows)

Failed stage: Run Bazel [❌]

Failed test name: py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome]

Failure summary:

The action failed because a pytest suite had test failures:
- Test
py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_dragging_element_with_mouse_fires_events[chrome]
failed with NoSuchElementException when attempting to locate element with selector
[id="dragging_reports"]. Traceback shows failure raised at:
-
py\test\selenium\webdriver\common\w3c_interaction_tests.py:170 (calling
_perform_drag_and_drop_with_mouse)
-
py\test\selenium\webdriver\common\w3c_interaction_tests.py:313 (trying to find dragging_reports)
-
Test
py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome]
consistently failed (3 attempts) with AssertionError at
py\test\selenium\webdriver\common\bidi_script_tests.py:512 asserting len(realms) > 0; realms was
empty. Logs also show intermittent connection resets (ConnectionResetError: [WinError 10054]) and
websocket disconnects during these runs.
Bazel summary: Executed 66 tests, 1 test target failed
(//py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py), causing the job to
exit with code 1.

Relevant error logs:
1:  ##[group]Runner Image Provisioner
2:  Hosted Compute Agent
...

304:  "enabled": true,
305:  "files": [
306:  "./MODULE.bazel",
307:  "./WORKSPACE.bazel",
308:  "./WORKSPACE.bzlmod",
309:  "./WORKSPACE"
310:  ],
311:  "name": "repository",
312:  "paths": [
313:  "D://b-repo"
314:  ]
315:  }
316:  }
317:  ##[endgroup]
318:  ##[group]Restore cache for bazelisk
319:  Failed to restore bazelisk cache
320:  ##[endgroup]
321:  ##[group]Restore cache for disk-py-browser-chrome
322:  Failed to restore disk-py-browser-chrome cache
323:  ##[endgroup]
324:  ##[group]Restore cache for repository
325:  Failed to restore repository cache
326:  ##[endgroup]
327:  ##[group]Restore cache for external-py-browser-chrome-manifest
328:  Failed to restore external-py-browser-chrome-manifest cache
329:  ##[endgroup]
...

703:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
704:  �[32m[949 / 1,498]�[0m Compiling absl/strings/internal/cord_rep_btree_reader.cc [for tool]; 0s local, disk-cache ... (4 actions running)
705:  �[32mINFO: �[0mFrom Compiling absl/strings/internal/cord_rep_btree_reader.cc [for tool]:
706:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
707:  �[32mINFO: �[0mFrom Compiling absl/strings/internal/cord_rep_btree_navigator.cc [for tool]:
708:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
709:  �[32mINFO: �[0mFrom Compiling absl/strings/internal/cord_rep_btree.cc [for tool]:
710:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
711:  �[32mINFO: �[0mFrom Compiling absl/strings/internal/cord_internal.cc [for tool]:
712:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
713:  �[32m[953 / 1,498]�[0m Compiling absl/strings/internal/cordz_info.cc [for tool]; 0s local, disk-cache ... (4 actions running)
714:  �[32mINFO: �[0mFrom Compiling absl/strings/cord_buffer.cc [for tool]:
715:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
716:  �[32mINFO: �[0mFrom Compiling absl/strings/internal/cordz_info.cc [for tool]:
717:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
718:  �[32mINFO: �[0mFrom Compiling absl/base/internal/strerror.cc [for tool]:
719:  cl : Command line warning D9002 : ignoring unknown option '-std=c++14'
...

1883:  platform win32 -- Python 3.10.18, pytest-9.0.0, pluggy-1.6.0
1884:  rootdir: C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_9m8202vh\runfiles\_main\py
1885:  configfile: pyproject.toml
1886:  plugins: instafail-0.5.0, trio-0.8.0, mock-3.15.1
1887:  collected 14 items
1888:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_should_be_able_to_get_pointer_and_keyboard_inputs[chrome] PASSED [  7%]
1889:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_sending_keys_to_active_element_with_modifier[chrome] PASSED [ 14%]
1890:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_can_create_pause_action_on_keyboard[chrome] PASSED [ 21%]
1891:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_can_create_pause_action_on_pointer[chrome] PASSED [ 28%]
1892:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_can_clear_actions[chrome] PASSED [ 35%]
1893:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_move_and_click[chrome] PASSED [ 42%]
1894:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_drag_and_drop[chrome] PASSED [ 50%]
1895:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_context_click[chrome] PASSED [ 57%]
1896:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_double_click[chrome] PASSED [ 64%]
1897:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_dragging_element_with_mouse_moves_it_to_another_list[chrome] PASSED [ 71%]
1898:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_dragging_element_with_mouse_fires_events[chrome] FAILED [ 78%]
1899:  ____________ test_dragging_element_with_mouse_fires_events[chrome] ____________
1900:  driver = <selenium.webdriver.chrome.webdriver.WebDriver (session="23202db6238aabe7b5c7ade1e04a85dc")>
1901:  pages = <conftest.pages.<locals>.Pages object at 0x000001BBD19CF550>
1902:  def test_dragging_element_with_mouse_fires_events(driver, pages):
1903:  >       _perform_drag_and_drop_with_mouse(driver, pages)
1904:  py\test\selenium\webdriver\common\w3c_interaction_tests.py:170: 
1905:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1906:  py\test\selenium\webdriver\common\w3c_interaction_tests.py:313: in _perform_drag_and_drop_with_mouse
1907:  dragReporter = driver.find_element(By.ID, "dragging_reports")
1908:  py\selenium\webdriver\remote\webdriver.py:802: in find_element
1909:  return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"]
1910:  py\selenium\webdriver\remote\webdriver.py:432: in execute
1911:  self.error_handler.check_response(response)
1912:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
1913:  self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x000001BBD386B400>
1914:  response = {'status': 404, 'value': '{"value":{"error":"no such element","message":"no such element: Unable to locate element: {\...ff647c64e1f\\n\\t0x7ff647c4b7c4\\n\\t0x7ff647c4b97f\\n\\t0x7ff647c318e8\\n\\t0x7ffea158e8d7\\n\\t0x7ffea222c53c\\n"}}'}
1915:  def check_response(self, response: dict[str, Any]) -> None:
1916:  """Check that a JSON response from the WebDriver does not have an error.
1917:  Args:
1918:  response: The JSON response from the WebDriver server as a dictionary
1919:  object.
1920:  Raises:
1921:  WebDriverException: If the response contains an error message.
1922:  """
1923:  status = response.get("status", None)
1924:  if not status or status == ErrorCode.SUCCESS:
1925:  return
1926:  value = None
1927:  message = response.get("message", "")
1928:  screen: str = response.get("screen", "")
1929:  stacktrace = None
1930:  if isinstance(status, int):
1931:  value_json = response.get("value", None)
1932:  if value_json and isinstance(value_json, str):
1933:  try:
1934:  value = json.loads(value_json)
1935:  if isinstance(value, dict):
1936:  if len(value) == 1:
1937:  value = value["value"]
1938:  status = value.get("error", None)
1939:  if not status:
1940:  status = value.get("status", ErrorCode.UNKNOWN_ERROR)
1941:  message = value.get("value") or value.get("message")
1942:  if not isinstance(message, str):
1943:  value = message
1944:  message = message.get("message") if isinstance(message, dict) else None
1945:  else:
1946:  message = value.get("message", None)
1947:  except ValueError:
1948:  pass
1949:  exception_class: type[WebDriverException]
1950:  e = ErrorCode()
1951:  error_codes = [item for item in dir(e) if not item.startswith("__")]
1952:  for error_code in error_codes:
1953:  error_info = getattr(ErrorCode, error_code)
1954:  if isinstance(error_info, list) and status in error_info:
1955:  exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
1956:  break
...

1972:  stacktrace = st_value.split("\n")
1973:  else:
1974:  stacktrace = []
1975:  try:
1976:  for frame in st_value:
1977:  line = frame.get("lineNumber", "")
1978:  file = frame.get("fileName", "<anonymous>")
1979:  if line:
1980:  file = f"{file}:{line}"
1981:  meth = frame.get("methodName", "<anonymous>")
1982:  if "className" in frame:
1983:  meth = f"{frame['className']}.{meth}"
1984:  msg = "    at %s (%s)"
1985:  msg = msg % (meth, file)
1986:  stacktrace.append(msg)
1987:  except TypeError:
1988:  pass
1989:  if exception_class == UnexpectedAlertPresentException:
1990:  alert_text = None
1991:  if "data" in value:
1992:  alert_text = value["data"].get("text")
1993:  elif "alert" in value:
1994:  alert_text = value["alert"].get("text")
1995:  raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
1996:  >       raise exception_class(message, screen, stacktrace)
1997:  E       selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="dragging_reports"]"}
1998:  E         (Session info: chrome=142.0.7444.176); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception
1999:  E       Stacktrace:
...

2005:  E       	0x7ff647a2a58c
2006:  E       	0x7ff647a7ed77
2007:  E       	0x7ff647a7baba
2008:  E       	0x7ff647a1b0ed
2009:  E       	0x7ff647a1bf63
2010:  E       	0x7ff647f15d60
2011:  E       	0x7ff647f0fe8a
2012:  E       	0x7ff647f31005
2013:  E       	0x7ff647c5d71e
2014:  E       	0x7ff647c64e1f
2015:  E       	0x7ff647c4b7c4
2016:  E       	0x7ff647c4b97f
2017:  E       	0x7ff647c318e8
2018:  E       	0x7ffea158e8d7
2019:  E       	0x7ffea222c53c
2020:  py\selenium\webdriver\remote\errorhandler.py:232: NoSuchElementException
2021:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_pen_pointer_properties[chrome] PASSED [ 85%]
2022:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_touch_pointer_properties[chrome] PASSED [ 92%]
2023:  py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_can_scroll_mouse_wheel[chrome] PASSED [100%]
2024:  =========================== short test summary info ===========================
2025:  FAILED py\test\selenium\webdriver\common\w3c_interaction_tests.py::test_dragging_element_with_mouse_fires_events[chrome] - selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":"[id="dragging_reports"]"}
2026:  (Session info: chrome=142.0.7444.176); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#nosuchelementexception
2027:  Stacktrace:
...

2033:  0x7ff647a2a58c
2034:  0x7ff647a7ed77
2035:  0x7ff647a7baba
2036:  0x7ff647a1b0ed
2037:  0x7ff647a1bf63
2038:  0x7ff647f15d60
2039:  0x7ff647f0fe8a
2040:  0x7ff647f31005
2041:  0x7ff647c5d71e
2042:  0x7ff647c64e1f
2043:  0x7ff647c4b7c4
2044:  0x7ff647c4b97f
2045:  0x7ff647c318e8
2046:  0x7ffea158e8d7
2047:  0x7ffea222c53c
2048:  ======================== 1 failed, 13 passed in 15.07s ========================
2049:  ================================================================================
...

2178:  �[32m[1,560 / 1,564]�[0m 62 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 53s local, disk-cache ... (4 actions, 3 running)
2179:  �[32m[1,561 / 1,564]�[0m 63 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 54s local, disk-cache ... (3 actions, 2 running)
2180:  �[32m[1,561 / 1,564]�[0m 63 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 65s local, disk-cache ... (3 actions, 2 running)
2181:  �[32m[1,561 / 1,564]�[0m 63 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 74s local, disk-cache ... (3 actions running)
2182:  �[32m[1,562 / 1,564]�[0m 64 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 75s local, disk-cache ... (2 actions running)
2183:  �[32m[1,562 / 1,564]�[0m 64 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 85s local, disk-cache ... (2 actions running)
2184:  �[32m[1,562 / 1,564]�[0m 64 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 90s local, disk-cache ... (2 actions running)
2185:  �[32m[1,563 / 1,564]�[0m 65 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 92s local, disk-cache
2186:  �[32m[1,563 / 1,564]�[0m 65 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 102s local, disk-cache
2187:  �[32m[1,563 / 1,564]�[0m 65 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 122s local, disk-cache
2188:  �[31m�[1mFAIL: �[0m//py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py (see D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test_attempts/attempt_2.log)
2189:  �[32m[1,563 / 1,564]�[0m 65 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 124s local, disk-cache
2190:  �[32m[1,563 / 1,564]�[0m 65 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 132s local, disk-cache
2191:  �[32m[1,563 / 1,564]�[0m 65 / 66 tests;�[0m Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py; 155s local, disk-cache
2192:  �[31m�[1mFAIL: �[0m//py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py (see D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test.log)
2193:  �[31m�[1mFAILED: �[0m//py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py (Summary)
2194:  D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test.log
2195:  D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test_attempts/attempt_1.log
2196:  D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test_attempts/attempt_2.log
2197:  �[32mINFO: �[0mFrom Testing //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py:
2198:  ==================== Test output for //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py:
2199:  ============================= test session starts =============================
2200:  platform win32 -- Python 3.10.18, pytest-9.0.0, pluggy-1.6.0
2201:  rootdir: C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_jkwjsp24\runfiles\_main\py
2202:  configfile: pyproject.toml
2203:  plugins: instafail-0.5.0, trio-0.8.0, mock-3.15.1
2204:  collected 47 items
2205:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_console_messages[chrome] PASSED [  2%]
2206:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_console_errors[chrome] PASSED [  4%]
2207:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_multiple_console_messages[chrome] PASSED [  6%]
2208:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_removes_console_message_handler[chrome] PASSED [  8%]
2209:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_javascript_error_messages[chrome] PASSED [ 10%]
2210:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_removes_javascript_message_handler[chrome] PASSED [ 12%]
...

2217:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_remove_preload_script[chrome] PASSED [ 27%]
2218:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_expression[chrome] PASSED [ 29%]
2219:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_await_promise[chrome] PASSED [ 31%]
2220:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_exception[chrome] PASSED [ 34%]
2221:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_result_ownership[chrome] PASSED [ 36%]
2222:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_serialization_options[chrome] PASSED [ 38%]
2223:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_user_activation[chrome] PASSED [ 40%]
2224:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function[chrome] PASSED [ 42%]
2225:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_this[chrome] PASSED [ 44%]
2226:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_user_activation[chrome] PASSED [ 46%]
2227:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_serialization_options[chrome] PASSED [ 48%]
2228:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_exception[chrome] PASSED [ 51%]
2229:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_await_promise[chrome] PASSED [ 53%]
2230:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_result_ownership[chrome] PASSED [ 55%]
2231:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms[chrome] PASSED [ 57%]
2232:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome] FAILED [ 59%]----------------------------------------
2233:  Exception occurred during processing of request from ('127.0.0.1', 62412)
2234:  Traceback (most recent call last):
2235:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_jkwjsp24\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 683, in process_request_thread
2236:  self.finish_request(request, client_address)
2237:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_jkwjsp24\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 360, in finish_request
2238:  self.RequestHandlerClass(request, client_address, self)
2239:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_jkwjsp24\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 747, in __init__
2240:  self.handle()
2241:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_jkwjsp24\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\http\server.py", line 433, in handle
2242:  self.handle_one_request()
2243:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_jkwjsp24\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\http\server.py", line 401, in handle_one_request
2244:  self.raw_requestline = self.rfile.readline(65537)
2245:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_jkwjsp24\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socket.py", line 717, in readinto
2246:  return self._sock.recv_into(b)
2247:  ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
2248:  ----------------------------------------
2249:  _________________ test_get_realms_filtered_by_context[chrome] _________________
2250:  driver = <selenium.webdriver.chrome.webdriver.WebDriver (session="68d2a543d5aa96f6530a7ef87eed84a5")>
2251:  pages = <conftest.pages.<locals>.Pages object at 0x0000026A219AFB20>
2252:  def test_get_realms_filtered_by_context(driver, pages):
2253:  """Test getting realms filtered by context."""
2254:  pages.load("blank.html")
2255:  realms = driver.script._get_realms(context=driver.current_window_handle)
2256:  >       assert len(realms) > 0
2257:  E       assert 0 > 0
2258:  E        +  where 0 = len([])
2259:  py\test\selenium\webdriver\common\bidi_script_tests.py:512: AssertionError
2260:  ----------------------------- live log logreport ------------------------------
2261:  ERROR    websocket:_logging.py:77 Connection to remote host was lost. - goodbye
2262:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_type[chrome] PASSED [ 61%]
...

2267:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_number_argument[chrome] PASSED [ 72%]
2268:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_nan[chrome] PASSED [ 74%]
2269:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_inf[chrome] PASSED [ 76%]
2270:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_minus_inf[chrome] PASSED [ 78%]
2271:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_bigint_argument[chrome] PASSED [ 80%]
2272:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_boolean_argument[chrome] PASSED [ 82%]
2273:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_string_argument[chrome] PASSED [ 85%]
2274:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_date_argument[chrome] PASSED [ 87%]
2275:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_array_argument[chrome] PASSED [ 89%]
2276:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_multiple_arguments[chrome] PASSED [ 91%]
2277:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_returns_promise[chrome] PASSED [ 93%]
2278:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_exception[chrome] PASSED [ 95%]
2279:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_accessing_dom[chrome] PASSED [ 97%]
2280:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_nested_objects[chrome] PASSED [100%]
2281:  ------------------------------ live log teardown ------------------------------
2282:  ERROR    websocket:_logging.py:77 Connection to remote host was lost. - goodbye
2283:  =========================== short test summary info ===========================
2284:  FAILED py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome] - assert 0 > 0
2285:  +  where 0 = len([])
2286:  ======================== 1 failed, 46 passed in 20.83s ========================
2287:  ================================================================================
2288:  ==================== Test output for //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py:
2289:  ============================= test session starts =============================
2290:  platform win32 -- Python 3.10.18, pytest-9.0.0, pluggy-1.6.0
2291:  rootdir: C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_qde6tr48\runfiles\_main\py
2292:  configfile: pyproject.toml
2293:  plugins: instafail-0.5.0, trio-0.8.0, mock-3.15.1
2294:  collected 47 items
2295:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_console_messages[chrome] PASSED [  2%]
2296:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_console_errors[chrome] PASSED [  4%]
2297:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_multiple_console_messages[chrome] PASSED [  6%]
2298:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_removes_console_message_handler[chrome] PASSED [  8%]
2299:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_javascript_error_messages[chrome] PASSED [ 10%]
2300:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_removes_javascript_message_handler[chrome] PASSED [ 12%]
...

2307:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_remove_preload_script[chrome] PASSED [ 27%]
2308:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_expression[chrome] PASSED [ 29%]
2309:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_await_promise[chrome] PASSED [ 31%]
2310:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_exception[chrome] PASSED [ 34%]
2311:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_result_ownership[chrome] PASSED [ 36%]
2312:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_serialization_options[chrome] PASSED [ 38%]
2313:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_user_activation[chrome] PASSED [ 40%]
2314:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function[chrome] PASSED [ 42%]
2315:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_this[chrome] PASSED [ 44%]
2316:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_user_activation[chrome] PASSED [ 46%]
2317:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_serialization_options[chrome] PASSED [ 48%]
2318:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_exception[chrome] PASSED [ 51%]
2319:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_await_promise[chrome] PASSED [ 53%]
2320:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_result_ownership[chrome] PASSED [ 55%]
2321:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms[chrome] PASSED [ 57%]
2322:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome] FAILED [ 59%]----------------------------------------
2323:  Exception occurred during processing of request from ('127.0.0.1', 64818)
2324:  Traceback (most recent call last):
2325:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_qde6tr48\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 683, in process_request_thread
2326:  self.finish_request(request, client_address)
2327:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_qde6tr48\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 360, in finish_request
2328:  self.RequestHandlerClass(request, client_address, self)
2329:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_qde6tr48\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 747, in __init__
2330:  self.handle()
2331:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_qde6tr48\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\http\server.py", line 433, in handle
2332:  self.handle_one_request()
2333:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_qde6tr48\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\http\server.py", line 401, in handle_one_request
2334:  self.raw_requestline = self.rfile.readline(65537)
2335:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_qde6tr48\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socket.py", line 717, in readinto
2336:  return self._sock.recv_into(b)
2337:  ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
2338:  ----------------------------------------
2339:  _________________ test_get_realms_filtered_by_context[chrome] _________________
2340:  driver = <selenium.webdriver.chrome.webdriver.WebDriver (session="e2d552d434e0a05d14ac351d4c1d2148")>
2341:  pages = <conftest.pages.<locals>.Pages object at 0x000002CD04B02A10>
2342:  def test_get_realms_filtered_by_context(driver, pages):
2343:  """Test getting realms filtered by context."""
2344:  pages.load("blank.html")
2345:  realms = driver.script._get_realms(context=driver.current_window_handle)
2346:  >       assert len(realms) > 0
2347:  E       assert 0 > 0
2348:  E        +  where 0 = len([])
2349:  py\test\selenium\webdriver\common\bidi_script_tests.py:512: AssertionError
2350:  ----------------------------- live log logreport ------------------------------
2351:  ERROR    websocket:_logging.py:77 Connection to remote host was lost. - goodbye
2352:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_type[chrome] PASSED [ 61%]
...

2357:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_number_argument[chrome] PASSED [ 72%]
2358:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_nan[chrome] PASSED [ 74%]
2359:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_inf[chrome] PASSED [ 76%]
2360:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_minus_inf[chrome] PASSED [ 78%]
2361:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_bigint_argument[chrome] PASSED [ 80%]
2362:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_boolean_argument[chrome] PASSED [ 82%]
2363:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_string_argument[chrome] PASSED [ 85%]
2364:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_date_argument[chrome] PASSED [ 87%]
2365:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_array_argument[chrome] PASSED [ 89%]
2366:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_multiple_arguments[chrome] PASSED [ 91%]
2367:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_returns_promise[chrome] PASSED [ 93%]
2368:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_exception[chrome] PASSED [ 95%]
2369:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_accessing_dom[chrome] PASSED [ 97%]
2370:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_nested_objects[chrome] PASSED [100%]
2371:  ------------------------------ live log teardown ------------------------------
2372:  ERROR    websocket:_logging.py:77 Connection to remote host was lost. - goodbye
2373:  =========================== short test summary info ===========================
2374:  FAILED py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome] - assert 0 > 0
2375:  +  where 0 = len([])
2376:  ======================== 1 failed, 46 passed in 20.30s ========================
2377:  ================================================================================
2378:  ==================== Test output for //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py:
2379:  ============================= test session starts =============================
2380:  platform win32 -- Python 3.10.18, pytest-9.0.0, pluggy-1.6.0
2381:  rootdir: C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_ks_rse08\runfiles\_main\py
2382:  configfile: pyproject.toml
2383:  plugins: instafail-0.5.0, trio-0.8.0, mock-3.15.1
2384:  collected 47 items
2385:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_console_messages[chrome] PASSED [  2%]
2386:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_console_errors[chrome] PASSED [  4%]
2387:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_logs_multiple_console_messages[chrome] PASSED [  6%]
2388:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_removes_console_message_handler[chrome] PASSED [  8%]
2389:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_javascript_error_messages[chrome] PASSED [ 10%]
2390:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_removes_javascript_message_handler[chrome] PASSED [ 12%]
...

2397:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_remove_preload_script[chrome] PASSED [ 27%]
2398:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_expression[chrome] PASSED [ 29%]
2399:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_await_promise[chrome] PASSED [ 31%]
2400:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_exception[chrome] PASSED [ 34%]
2401:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_result_ownership[chrome] PASSED [ 36%]
2402:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_serialization_options[chrome] PASSED [ 38%]
2403:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_evaluate_with_user_activation[chrome] PASSED [ 40%]
2404:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function[chrome] PASSED [ 42%]
2405:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_this[chrome] PASSED [ 44%]
2406:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_user_activation[chrome] PASSED [ 46%]
2407:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_serialization_options[chrome] PASSED [ 48%]
2408:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_exception[chrome] PASSED [ 51%]
2409:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_await_promise[chrome] PASSED [ 53%]
2410:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_call_function_with_result_ownership[chrome] PASSED [ 55%]
2411:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms[chrome] PASSED [ 57%]
2412:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome] FAILED [ 59%]----------------------------------------
2413:  Exception occurred during processing of request from ('127.0.0.1', 57318)
2414:  Traceback (most recent call last):
2415:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_ks_rse08\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 683, in process_request_thread
2416:  self.finish_request(request, client_address)
2417:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_ks_rse08\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 360, in finish_request
2418:  self.RequestHandlerClass(request, client_address, self)
2419:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_ks_rse08\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socketserver.py", line 747, in __init__
2420:  self.handle()
2421:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_ks_rse08\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\http\server.py", line 433, in handle
2422:  self.handle_one_request()
2423:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_ks_rse08\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\http\server.py", line 401, in handle_one_request
2424:  self.raw_requestline = self.rfile.readline(65537)
2425:  File "C:\Users\RUNNER~1\AppData\Local\Temp\Bazel.runfiles_ks_rse08\runfiles\rules_python++python+python_3_10_x86_64-pc-windows-msvc\lib\socket.py", line 717, in readinto
2426:  return self._sock.recv_into(b)
2427:  ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
2428:  ----------------------------------------
2429:  _________________ test_get_realms_filtered_by_context[chrome] _________________
2430:  driver = <selenium.webdriver.chrome.webdriver.WebDriver (session="2fddad2eff1da61c528c12314a077af3")>
2431:  pages = <conftest.pages.<locals>.Pages object at 0x000002539B9752A0>
2432:  def test_get_realms_filtered_by_context(driver, pages):
2433:  """Test getting realms filtered by context."""
2434:  pages.load("blank.html")
2435:  realms = driver.script._get_realms(context=driver.current_window_handle)
2436:  >       assert len(realms) > 0
2437:  E       assert 0 > 0
2438:  E        +  where 0 = len([])
2439:  py\test\selenium\webdriver\common\bidi_script_tests.py:512: AssertionError
2440:  ----------------------------- live log logreport ------------------------------
2441:  ERROR    websocket:_logging.py:77 Connection to remote host was lost. - goodbye
2442:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_type[chrome] PASSED [ 61%]
...

2447:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_number_argument[chrome] PASSED [ 72%]
2448:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_nan[chrome] PASSED [ 74%]
2449:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_inf[chrome] PASSED [ 76%]
2450:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_minus_inf[chrome] PASSED [ 78%]
2451:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_bigint_argument[chrome] PASSED [ 80%]
2452:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_boolean_argument[chrome] PASSED [ 82%]
2453:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_string_argument[chrome] PASSED [ 85%]
2454:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_date_argument[chrome] PASSED [ 87%]
2455:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_array_argument[chrome] PASSED [ 89%]
2456:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_multiple_arguments[chrome] PASSED [ 91%]
2457:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_returns_promise[chrome] PASSED [ 93%]
2458:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_exception[chrome] PASSED [ 95%]
2459:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_accessing_dom[chrome] PASSED [ 97%]
2460:  py\test\selenium\webdriver\common\bidi_script_tests.py::test_execute_script_with_nested_objects[chrome] PASSED [100%]
2461:  ------------------------------ live log teardown ------------------------------
2462:  ERROR    websocket:_logging.py:77 Connection to remote host was lost. - goodbye
2463:  =========================== short test summary info ===========================
2464:  FAILED py\test\selenium\webdriver\common\bidi_script_tests.py::test_get_realms_filtered_by_context[chrome] - assert 0 > 0
2465:  +  where 0 = len([])
2466:  ======================== 1 failed, 46 passed in 20.55s ========================
2467:  ================================================================================
2468:  �[32mINFO: �[0mFound 66 test targets...
2469:  �[32m[1,564 / 1,564]�[0m 66 / 66 tests, �[31m�[1m1 failed�[0m;�[0m no actions running
2470:  �[32mINFO: �[0mElapsed time: 2483.943s, Critical Path: 311.16s
2471:  �[32mINFO: �[0m1564 processes: 1 disk cache hit, 715 internal, 774 local, 74 worker.
2472:  �[32mINFO: �[0mBuild completed, 1 test FAILED, 1564 total actions
2473:  //py:common-chrome-bidi-test/selenium/webdriver/common/alerts_tests.py   �[0m�[32mPASSED�[0m in 24.5s
...

2522:  //py:common-chrome-bidi-test/selenium/webdriver/common/typing_tests.py   �[0m�[32mPASSED�[0m in 27.8s
2523:  //py:common-chrome-bidi-test/selenium/webdriver/common/upload_tests.py   �[0m�[32mPASSED�[0m in 18.1s
2524:  //py:common-chrome-bidi-test/selenium/webdriver/common/virtual_authenticator_tests.py �[0m�[32mPASSED�[0m in 22.0s
2525:  //py:common-chrome-bidi-test/selenium/webdriver/common/visibility_tests.py �[0m�[32mPASSED�[0m in 18.4s
2526:  //py:common-chrome-bidi-test/selenium/webdriver/common/web_components_tests.py �[0m�[32mPASSED�[0m in 18.3s
2527:  //py:common-chrome-bidi-test/selenium/webdriver/common/webdriverwait_tests.py �[0m�[32mPASSED�[0m in 65.5s
2528:  //py:common-chrome-bidi-test/selenium/webdriver/common/window_switching_tests.py �[0m�[32mPASSED�[0m in 21.1s
2529:  //py:common-chrome-bidi-test/selenium/webdriver/common/window_tests.py   �[0m�[32mPASSED�[0m in 18.1s
2530:  //py:common-chrome-bidi-test/selenium/webdriver/support/event_firing_webdriver_tests.py �[0m�[32mPASSED�[0m in 20.0s
2531:  //py:common-chrome-bidi-test/selenium/webdriver/support/expected_conditions_tests.py �[0m�[32mPASSED�[0m in 22.4s
2532:  //py:common-chrome-bidi-test/selenium/webdriver/support/relative_by_tests.py �[0m�[32mPASSED�[0m in 17.7s
2533:  //py:test-chrome-test/selenium/webdriver/chrome/chrome_launcher_tests.py �[0m�[32mPASSED�[0m in 27.6s
2534:  //py:test-chrome-test/selenium/webdriver/chrome/chrome_network_emulation_tests.py �[0m�[32mPASSED�[0m in 22.3s
2535:  //py:test-chrome-test/selenium/webdriver/chrome/chrome_service_tests.py  �[0m�[32mPASSED�[0m in 55.5s
2536:  //py:test-chrome-test/selenium/webdriver/chrome/proxy_tests.py           �[0m�[32mPASSED�[0m in 17.5s
2537:  //py:common-chrome-bidi-test/selenium/webdriver/common/w3c_interaction_tests.py �[0m�[35mFLAKY�[0m, failed in 1 out of 2 in 28.2s
2538:  Stats over 2 runs: max = 28.2s, min = 25.4s, avg = 26.8s, dev = 1.4s
2539:  D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/w3c_interaction_tests.py/test_attempts/attempt_1.log
2540:  //py:common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py �[0m�[31m�[1mFAILED�[0m in 3 out of 3 in 34.9s
2541:  Stats over 3 runs: max = 34.9s, min = 32.1s, avg = 33.3s, dev = 1.2s
2542:  D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test.log
2543:  D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test_attempts/attempt_1.log
2544:  D:/b/execroot/_main/bazel-out/x64_windows-fastbuild/testlogs/py/common-chrome-bidi-test/selenium/webdriver/common/bidi_script_tests.py/test_attempts/attempt_2.log
2545:  Executed 66 out of 66 tests: 65 tests pass and �[0m�[31m�[1m1 fails locally�[0m.
2546:  There were tests whose specified size is too big. Use the --test_verbose_timeout_warnings command line option to see which ones these are.
2547:  �[0m
2548:  ##[error]Process completed with exit code 1.
2549:  ##[group]Run actions/upload-artifact@v5
...

2568:  ##[endgroup]
2569:  With the provided path, there will be 405 files uploaded
2570:  Artifact name is valid!
2571:  Root directory input is valid!
2572:  Beginning upload of artifact content to blob storage
2573:  Uploaded bytes 407962
2574:  Finished uploading artifact content to blob storage!
2575:  SHA256 digest of uploaded artifact zip is 1fd5db352827d4c62d5f604d701513174fa226d45b9a145ba72801ff843727d9
2576:  Finalizing artifact upload
2577:  Artifact test-logs-windows-Integration Tests (chrome, windows)-chrome.zip successfully finalized. Artifact ID 4769692295
2578:  Artifact test-logs-windows-Integration Tests (chrome, windows)-chrome has been successfully uploaded! Final size is 407962 bytes. Artifact ID is 4769692295
2579:  Artifact download URL: https://github.com/SeleniumHQ/selenium/actions/runs/19941830241/artifacts/4769692295
2580:  Post job cleanup.
2581:  ##[group]Save cache for bazelisk
2582:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2583:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-bazelisk-1c738f2c94b26698d42161fd2c2da70645e6a68eb05666a970f9d2c0143fbabb, another job may be creating this cache.
2584:  Successfully saved cache
...

2590:  Sent 268435456 of 3323715358 (8.1%), 85.1 MBs/sec
2591:  Sent 536870912 of 3323715358 (16.2%), 127.7 MBs/sec
2592:  Sent 603979776 of 3323715358 (18.2%), 115.0 MBs/sec
2593:  Sent 1073741824 of 3323715358 (32.3%), 170.4 MBs/sec
2594:  Sent 1073741824 of 3323715358 (32.3%), 146.1 MBs/sec
2595:  Sent 1610612736 of 3323715358 (48.5%), 191.5 MBs/sec
2596:  Sent 1744830464 of 3323715358 (52.5%), 184.5 MBs/sec
2597:  Sent 2147483648 of 3323715358 (64.6%), 204.4 MBs/sec
2598:  Sent 2684354560 of 3323715358 (80.8%), 232.1 MBs/sec
2599:  Sent 3154116608 of 3323715358 (94.9%), 250.0 MBs/sec
2600:  Sent 3323715358 of 3323715358 (100.0%), 251.3 MBs/sec
2601:  Successfully saved cache
2602:  ##[endgroup]
2603:  ##[group]Save cache for repository
2604:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2605:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-repository-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2606:  Successfully saved cache
2607:  ##[endgroup]
2608:  ##[group]Save cache for external-com_google_javascript_closure_library
2609:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2610:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-com_google_javascript_closure_library-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2611:  Successfully saved cache
2612:  ##[endgroup]
2613:  ##[group]Save cache for external-protobuf+
2614:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2615:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-protobuf+-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2616:  Successfully saved cache
2617:  ##[endgroup]
2618:  ##[group]Save cache for external-rules_java++toolchains+remotejdk21_win
2619:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2620:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_java++toolchains+remotejdk21_win-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2621:  Successfully saved cache
2622:  ##[endgroup]
2623:  ##[group]Save cache for external-rules_java++toolchains+remote_java_tools
2624:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2625:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_java++toolchains+remote_java_tools-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2626:  Successfully saved cache
2627:  ##[endgroup]
2628:  ##[group]Save cache for external-rules_java++toolchains+remote_java_tools_windows
2629:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2630:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_java++toolchains+remote_java_tools_windows-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2631:  Successfully saved cache
2632:  ##[endgroup]
2633:  ##[group]Save cache for external-rules_kotlin+
2634:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2635:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_kotlin+-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2636:  Successfully saved cache
2637:  ##[endgroup]
2638:  ##[group]Save cache for external-rules_python++internal_deps+pypi__pip
2639:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2640:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_python++internal_deps+pypi__pip-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2641:  Successfully saved cache
2642:  ##[endgroup]
2643:  ##[group]Save cache for external-rules_python++pip+py_dev_requirements_310_debugpy
2644:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2645:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_python++pip+py_dev_requirements_310_debugpy-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2646:  Successfully saved cache
2647:  ##[endgroup]
2648:  ##[group]Save cache for external-rules_python++python+python_3_10_x86_64-pc-windows-msvc
2649:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2650:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_python++python+python_3_10_x86_64-pc-windows-msvc-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2651:  Successfully saved cache
2652:  ##[endgroup]
2653:  ##[group]Save cache for external-rules_rust+
2654:  [command]"C:\Program Files\Git\usr\bin\tar.exe" --posix -cf cache.tzst --exclude cache.tzst -P -C D:/a/selenium/selenium --files-from manifest.txt --force-local --use-compress-program "zstd -T0"
2655:  Failed to save: Unable to reserve cache with key setup-bazel-2-win32-external-rules_rust+-a81663824d453517330a3134e2bf1fa4f18e5f29a8ce69e2940e700df10cc40c, another job may be creating this cache.
2656:  Successfully saved cache

@asolntsev asolntsev merged commit 9667310 into trunk Dec 5, 2025
81 of 85 checks passed
@asolntsev asolntsev deleted the class-cast-exception branch December 5, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants