Skip to content

Update dependency tox to v4.26.0 #2310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open

Update dependency tox to v4.26.0 #2310

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 13, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tox (changelog) ==4.25.0 -> ==4.26.0 age adoption passing confidence

Release Notes

tox-dev/tox (tox)

v4.26.0

Compare Source

What's Changed

New Contributors

Full Changelog: tox-dev/tox@4.25.0...4.26.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

netlify bot commented May 13, 2025

Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit f02751a
🔍 Latest deploy log https://app.netlify.com/sites/selenium-dev/deploys/68239bfa16242c000804541c
😎 Deploy Preview https://deploy-preview-2310--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

qodo-merge-pro bot commented May 13, 2025

CI Feedback 🧐

(Feedback updated until commit f02751a)

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

Action: tests (windows, nightly, 3.12)

Failed stage: Run tests [❌]

Failed test name: test_set_context

Failure summary:

The action failed because the test test_set_context in tests/browsers/test_firefox.py (line 149)
failed. The test attempts to use Firefox's chrome context but fails with the error:

"System access is required to switch to chrome scope. Start Firefox with
'-remote-allow-system-access' to enable it."

The test is trying to use driver.context(driver.CONTEXT_CHROME) but Firefox is not configured with
the required system access permissions. The test needs Firefox to be launched with the
-remote-allow-system-access flag.

Relevant error logs:
1:  ##[group]Operating System
2:  Microsoft Windows Server 2022
...

460:  Version: 11.0.27+6
461:  Path: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.27-6\x64
462:  ##[endgroup]
463:  Creating settings.xml with server-id: github
464:  Writing to C:\Users\runneradmin\.m2\settings.xml
465:  ##[group]Run nick-invision/[email protected]
466:  with:
467:  timeout_minutes: 60
468:  max_attempts: 3
469:  command: cd examples/python
470:  pytest --reruns 3
471:  
472:  retry_wait_seconds: 10
473:  polling_interval_seconds: 1
474:  warning_on_retry: true
475:  continue_on_error: false
476:  env:
...

511:  tests\drivers\test_remote_webdriver.py sss                               [ 69%]
512:  tests\drivers\test_service.py ...                                        [ 71%]
513:  tests\elements\test_file_upload.py .                                     [ 72%]
514:  tests\elements\test_information.py .                                     [ 72%]
515:  tests\elements\test_interaction.py .                                     [ 73%]
516:  tests\elements\test_locators.py ........                                 [ 77%]
517:  tests\interactions\test_alerts.py ...                                    [ 79%]
518:  tests\interactions\test_cookies.py ......                                [ 83%]
519:  tests\interactions\test_print_options.py .......                         [ 87%]
520:  tests\interactions\test_prints_page.py .                                 [ 88%]
521:  tests\interactions\test_virtual_authenticator.py ..........              [ 94%]
522:  tests\support\test_expected_conditions.py .                              [ 94%]
523:  tests\support\test_select_list.py ...                                    [ 96%]
524:  tests\troubleshooting\test_logging.py .                                  [ 97%]
525:  tests\waits\test_waits.py .....                                          [100%]
526:  ================================== FAILURES ===================================
527:  ______________________________ test_set_context _______________________________
528:  firefox_driver = <selenium.webdriver.firefox.webdriver.WebDriver (session="8554c079-6d1d-4b9f-927e-4cc932d49e5f")>
529:  def test_set_context(firefox_driver):
530:  driver = firefox_driver
531:  >       with driver.context(driver.CONTEXT_CHROME):
532:  tests\browsers\test_firefox.py:149: 
533:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
534:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\contextlib.py:137: in __enter__
535:  return next(self.gen)
536:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:107: in context
537:  self.set_context(context)
538:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:89: in set_context
539:  self.execute("SET_CONTEXT", {"context": context})
540:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\remote\webdriver.py:450: in execute
541:  self.error_handler.check_response(response)
542:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
543:  self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x000001850CE2ECC0>
544:  response = {'status': 500, 'value': '{"value":{"error":"unsupported operation","message":"System access is required to switch to ...ionette/server.sys.mjs:263:9\\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20\\n"}}'}
545:  def check_response(self, response: Dict[str, Any]) -> None:
546:  """Checks that a JSON response from the WebDriver does not have an
547:  error.
548:  :Args:
549:  - response - The JSON response from the WebDriver server as a dictionary
550:  object.
551:  :Raises: If the response contains an error message.
552:  """
553:  status = response.get("status", None)
554:  if not status or status == ErrorCode.SUCCESS:
555:  return
556:  value = None
557:  message = response.get("message", "")
558:  screen: str = response.get("screen", "")
559:  stacktrace = None
560:  if isinstance(status, int):
561:  value_json = response.get("value", None)
562:  if value_json and isinstance(value_json, str):
563:  import json
564:  try:
565:  value = json.loads(value_json)
566:  if len(value) == 1:
567:  value = value["value"]
568:  status = value.get("error", None)
569:  if not status:
570:  status = value.get("status", ErrorCode.UNKNOWN_ERROR)
571:  message = value.get("value") or value.get("message")
572:  if not isinstance(message, str):
573:  value = message
574:  message = message.get("message")
575:  else:
576:  message = value.get("message", None)
577:  except ValueError:
578:  pass
579:  exception_class: Type[WebDriverException]
580:  e = ErrorCode()
581:  error_codes = [item for item in dir(e) if not item.startswith("__")]
582:  for error_code in error_codes:
583:  error_info = getattr(ErrorCode, error_code)
584:  if isinstance(error_info, list) and status in error_info:
585:  exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
586:  break
...

602:  stacktrace = st_value.split("\n")
603:  else:
604:  stacktrace = []
605:  try:
606:  for frame in st_value:
607:  line = frame.get("lineNumber", "")
608:  file = frame.get("fileName", "<anonymous>")
609:  if line:
610:  file = f"{file}:{line}"
611:  meth = frame.get("methodName", "<anonymous>")
612:  if "className" in frame:
613:  meth = f"{frame['className']}.{meth}"
614:  msg = "    at %s (%s)"
615:  msg = msg % (meth, file)
616:  stacktrace.append(msg)
617:  except TypeError:
618:  pass
619:  if exception_class == UnexpectedAlertPresentException:
620:  alert_text = None
621:  if "data" in value:
622:  alert_text = value["data"].get("text")
623:  elif "alert" in value:
624:  alert_text = value["alert"].get("text")
625:  raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
626:  >       raise exception_class(message, screen, stacktrace)
627:  E       selenium.common.exceptions.WebDriverException: Message: System access is required to switch to chrome scope. Start Firefox with "-remote-allow-system-access" to enable it.
628:  E       Stacktrace:
629:  E       RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
630:  E       WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
631:  E       UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5
632:  E       set@chrome://remote/content/marionette/driver.sys.mjs:338:13
633:  E       GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3
634:  E       despatch@chrome://remote/content/marionette/server.sys.mjs:318:40
635:  E       execute@chrome://remote/content/marionette/server.sys.mjs:289:16
636:  E       onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20
637:  E       onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9
638:  E       _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20
639:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\remote\errorhandler.py:232: WebDriverException
640:  =========================== short test summary info ===========================
641:  FAILED tests/browsers/test_firefox.py::test_set_context - selenium.common.exceptions.WebDriverException: Message: System access is required to switch to chrome scope. Start Firefox with "-remote-allow-system-access" to enable it.
642:  Stacktrace:
643:  RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
644:  WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
645:  UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5
646:  set@chrome://remote/content/marionette/driver.sys.mjs:338:13
647:  GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3
648:  despatch@chrome://remote/content/marionette/server.sys.mjs:318:40
649:  execute@chrome://remote/content/marionette/server.sys.mjs:289:16
650:  onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20
651:  onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9
652:  _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20
653:  ======= 1 failed, 156 passed, 11 skipped, 3 rerun in 895.77s (0:14:55) ========
654:  ##[warning]Attempt 1 failed. Reason: Child_process exited with error code 1
655:  ##[endgroup]
...

679:  tests\drivers\test_remote_webdriver.py sss                               [ 69%]
680:  tests\drivers\test_service.py ...                                        [ 71%]
681:  tests\elements\test_file_upload.py .                                     [ 72%]
682:  tests\elements\test_information.py .                                     [ 72%]
683:  tests\elements\test_interaction.py .                                     [ 73%]
684:  tests\elements\test_locators.py ........                                 [ 77%]
685:  tests\interactions\test_alerts.py ...                                    [ 79%]
686:  tests\interactions\test_cookies.py ......                                [ 83%]
687:  tests\interactions\test_print_options.py .......                         [ 87%]
688:  tests\interactions\test_prints_page.py .                                 [ 88%]
689:  tests\interactions\test_virtual_authenticator.py ..........              [ 94%]
690:  tests\support\test_expected_conditions.py .                              [ 94%]
691:  tests\support\test_select_list.py ...                                    [ 96%]
692:  tests\troubleshooting\test_logging.py .                                  [ 97%]
693:  tests\waits\test_waits.py .....                                          [100%]
694:  ================================== FAILURES ===================================
695:  ______________________________ test_set_context _______________________________
696:  firefox_driver = <selenium.webdriver.firefox.webdriver.WebDriver (session="41293f45-9fc9-4794-9841-6274438e61f4")>
697:  def test_set_context(firefox_driver):
698:  driver = firefox_driver
699:  >       with driver.context(driver.CONTEXT_CHROME):
700:  tests\browsers\test_firefox.py:149: 
701:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
702:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\contextlib.py:137: in __enter__
703:  return next(self.gen)
704:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:107: in context
705:  self.set_context(context)
706:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:89: in set_context
707:  self.execute("SET_CONTEXT", {"context": context})
708:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\remote\webdriver.py:450: in execute
709:  self.error_handler.check_response(response)
710:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
711:  self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x0000028AFD60FD10>
712:  response = {'status': 500, 'value': '{"value":{"error":"unsupported operation","message":"System access is required to switch to ...ionette/server.sys.mjs:263:9\\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20\\n"}}'}
713:  def check_response(self, response: Dict[str, Any]) -> None:
714:  """Checks that a JSON response from the WebDriver does not have an
715:  error.
716:  :Args:
717:  - response - The JSON response from the WebDriver server as a dictionary
718:  object.
719:  :Raises: If the response contains an error message.
720:  """
721:  status = response.get("status", None)
722:  if not status or status == ErrorCode.SUCCESS:
723:  return
724:  value = None
725:  message = response.get("message", "")
726:  screen: str = response.get("screen", "")
727:  stacktrace = None
728:  if isinstance(status, int):
729:  value_json = response.get("value", None)
730:  if value_json and isinstance(value_json, str):
731:  import json
732:  try:
733:  value = json.loads(value_json)
734:  if len(value) == 1:
735:  value = value["value"]
736:  status = value.get("error", None)
737:  if not status:
738:  status = value.get("status", ErrorCode.UNKNOWN_ERROR)
739:  message = value.get("value") or value.get("message")
740:  if not isinstance(message, str):
741:  value = message
742:  message = message.get("message")
743:  else:
744:  message = value.get("message", None)
745:  except ValueError:
746:  pass
747:  exception_class: Type[WebDriverException]
748:  e = ErrorCode()
749:  error_codes = [item for item in dir(e) if not item.startswith("__")]
750:  for error_code in error_codes:
751:  error_info = getattr(ErrorCode, error_code)
752:  if isinstance(error_info, list) and status in error_info:
753:  exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
754:  break
...

770:  stacktrace = st_value.split("\n")
771:  else:
772:  stacktrace = []
773:  try:
774:  for frame in st_value:
775:  line = frame.get("lineNumber", "")
776:  file = frame.get("fileName", "<anonymous>")
777:  if line:
778:  file = f"{file}:{line}"
779:  meth = frame.get("methodName", "<anonymous>")
780:  if "className" in frame:
781:  meth = f"{frame['className']}.{meth}"
782:  msg = "    at %s (%s)"
783:  msg = msg % (meth, file)
784:  stacktrace.append(msg)
785:  except TypeError:
786:  pass
787:  if exception_class == UnexpectedAlertPresentException:
788:  alert_text = None
789:  if "data" in value:
790:  alert_text = value["data"].get("text")
791:  elif "alert" in value:
792:  alert_text = value["alert"].get("text")
793:  raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
794:  >       raise exception_class(message, screen, stacktrace)
795:  E       selenium.common.exceptions.WebDriverException: Message: System access is required to switch to chrome scope. Start Firefox with "-remote-allow-system-access" to enable it.
796:  E       Stacktrace:
797:  E       RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
798:  E       WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
799:  E       UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5
800:  E       set@chrome://remote/content/marionette/driver.sys.mjs:338:13
801:  E       GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3
802:  E       despatch@chrome://remote/content/marionette/server.sys.mjs:318:40
803:  E       execute@chrome://remote/content/marionette/server.sys.mjs:289:16
804:  E       onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20
805:  E       onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9
806:  E       _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20
807:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\remote\errorhandler.py:232: WebDriverException
808:  =========================== short test summary info ===========================
809:  FAILED tests/browsers/test_firefox.py::test_set_context - selenium.common.exceptions.WebDriverException: Message: System access is required to switch to chrome scope. Start Firefox with "-remote-allow-system-access" to enable it.
810:  Stacktrace:
811:  RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
812:  WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
813:  UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5
814:  set@chrome://remote/content/marionette/driver.sys.mjs:338:13
815:  GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3
816:  despatch@chrome://remote/content/marionette/server.sys.mjs:318:40
817:  execute@chrome://remote/content/marionette/server.sys.mjs:289:16
818:  onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20
819:  onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9
820:  _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20
821:  ======= 1 failed, 156 passed, 11 skipped, 3 rerun in 806.40s (0:13:26) ========
822:  ##[warning]Attempt 2 failed. Reason: Child_process exited with error code 1
823:  ##[endgroup]
...

847:  tests\drivers\test_remote_webdriver.py sss                               [ 69%]
848:  tests\drivers\test_service.py ...                                        [ 71%]
849:  tests\elements\test_file_upload.py .                                     [ 72%]
850:  tests\elements\test_information.py .                                     [ 72%]
851:  tests\elements\test_interaction.py .                                     [ 73%]
852:  tests\elements\test_locators.py ........                                 [ 77%]
853:  tests\interactions\test_alerts.py ...                                    [ 79%]
854:  tests\interactions\test_cookies.py ......                                [ 83%]
855:  tests\interactions\test_print_options.py .......                         [ 87%]
856:  tests\interactions\test_prints_page.py .                                 [ 88%]
857:  tests\interactions\test_virtual_authenticator.py ..........              [ 94%]
858:  tests\support\test_expected_conditions.py .                              [ 94%]
859:  tests\support\test_select_list.py ...                                    [ 96%]
860:  tests\troubleshooting\test_logging.py .                                  [ 97%]
861:  tests\waits\test_waits.py .....                                          [100%]
862:  ================================== FAILURES ===================================
863:  ______________________________ test_set_context _______________________________
864:  firefox_driver = <selenium.webdriver.firefox.webdriver.WebDriver (session="da718133-ce5d-498b-bf66-0c72c8737a12")>
865:  def test_set_context(firefox_driver):
866:  driver = firefox_driver
867:  >       with driver.context(driver.CONTEXT_CHROME):
868:  tests\browsers\test_firefox.py:149: 
869:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
870:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\contextlib.py:137: in __enter__
871:  return next(self.gen)
872:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:107: in context
873:  self.set_context(context)
874:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\firefox\webdriver.py:89: in set_context
875:  self.execute("SET_CONTEXT", {"context": context})
876:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\remote\webdriver.py:450: in execute
877:  self.error_handler.check_response(response)
878:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
879:  self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x000002323A54AA20>
880:  response = {'status': 500, 'value': '{"value":{"error":"unsupported operation","message":"System access is required to switch to ...ionette/server.sys.mjs:263:9\\n_onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20\\n"}}'}
881:  def check_response(self, response: Dict[str, Any]) -> None:
882:  """Checks that a JSON response from the WebDriver does not have an
883:  error.
884:  :Args:
885:  - response - The JSON response from the WebDriver server as a dictionary
886:  object.
887:  :Raises: If the response contains an error message.
888:  """
889:  status = response.get("status", None)
890:  if not status or status == ErrorCode.SUCCESS:
891:  return
892:  value = None
893:  message = response.get("message", "")
894:  screen: str = response.get("screen", "")
895:  stacktrace = None
896:  if isinstance(status, int):
897:  value_json = response.get("value", None)
898:  if value_json and isinstance(value_json, str):
899:  import json
900:  try:
901:  value = json.loads(value_json)
902:  if len(value) == 1:
903:  value = value["value"]
904:  status = value.get("error", None)
905:  if not status:
906:  status = value.get("status", ErrorCode.UNKNOWN_ERROR)
907:  message = value.get("value") or value.get("message")
908:  if not isinstance(message, str):
909:  value = message
910:  message = message.get("message")
911:  else:
912:  message = value.get("message", None)
913:  except ValueError:
914:  pass
915:  exception_class: Type[WebDriverException]
916:  e = ErrorCode()
917:  error_codes = [item for item in dir(e) if not item.startswith("__")]
918:  for error_code in error_codes:
919:  error_info = getattr(ErrorCode, error_code)
920:  if isinstance(error_info, list) and status in error_info:
921:  exception_class = getattr(ExceptionMapping, error_code, WebDriverException)
922:  break
...

938:  stacktrace = st_value.split("\n")
939:  else:
940:  stacktrace = []
941:  try:
942:  for frame in st_value:
943:  line = frame.get("lineNumber", "")
944:  file = frame.get("fileName", "<anonymous>")
945:  if line:
946:  file = f"{file}:{line}"
947:  meth = frame.get("methodName", "<anonymous>")
948:  if "className" in frame:
949:  meth = f"{frame['className']}.{meth}"
950:  msg = "    at %s (%s)"
951:  msg = msg % (meth, file)
952:  stacktrace.append(msg)
953:  except TypeError:
954:  pass
955:  if exception_class == UnexpectedAlertPresentException:
956:  alert_text = None
957:  if "data" in value:
958:  alert_text = value["data"].get("text")
959:  elif "alert" in value:
960:  alert_text = value["alert"].get("text")
961:  raise exception_class(message, screen, stacktrace, alert_text)  # type: ignore[call-arg]  # mypy is not smart enough here
962:  >       raise exception_class(message, screen, stacktrace)
963:  E       selenium.common.exceptions.WebDriverException: Message: System access is required to switch to chrome scope. Start Firefox with "-remote-allow-system-access" to enable it.
964:  E       Stacktrace:
965:  E       RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
966:  E       WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
967:  E       UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5
968:  E       set@chrome://remote/content/marionette/driver.sys.mjs:338:13
969:  E       GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3
970:  E       despatch@chrome://remote/content/marionette/server.sys.mjs:318:40
971:  E       execute@chrome://remote/content/marionette/server.sys.mjs:289:16
972:  E       onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20
973:  E       onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9
974:  E       _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20
975:  C:\hostedtoolcache\windows\Python\3.12.10\x64\Lib\site-packages\selenium\webdriver\remote\errorhandler.py:232: WebDriverException
976:  =========================== short test summary info ===========================
977:  FAILED tests/browsers/test_firefox.py::test_set_context - selenium.common.exceptions.WebDriverException: Message: System access is required to switch to chrome scope. Start Firefox with "-remote-allow-system-access" to enable it.
978:  Stacktrace:
979:  RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
980:  WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5
981:  UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5
982:  set@chrome://remote/content/marionette/driver.sys.mjs:338:13
983:  GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3
984:  despatch@chrome://remote/content/marionette/server.sys.mjs:318:40
985:  execute@chrome://remote/content/marionette/server.sys.mjs:289:16
986:  onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20
987:  onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9
988:  _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20
989:  ======= 1 failed, 156 passed, 11 skipped, 3 rerun in 772.10s (0:12:52) ========
990:  ##[endgroup]
991:  ##[error]Final attempt failed. Child_process exited with error code 1
992:  Post job cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants