Update dependency pytest-rerunfailures to v15.1 by renovate[bot] · Pull Request #2307 · SeleniumHQ/seleniumhq.github.io (original) (raw)
Relevant error logs:
1: ##[group]Operating System 2: Microsoft Windows Server 2022 ...
324: Version: 11.0.27+6
325: Path: C:\hostedtoolcache\windows\Java_Temurin-Hotspot_jdk\11.0.27-6\x64
326: ##[endgroup]
327: Creating settings.xml with server-id: github
328: Writing to C:\Users\runneradmin.m2\settings.xml
329: ##[group]Run nick-invision/retry@v3.0.2
330: with:
331: timeout_minutes: 60
332: max_attempts: 3
333: command: cd examples/python
334: pytest --reruns 3
335:
336: retry_wait_seconds: 10
337: polling_interval_seconds: 1
338: warning_on_retry: true
339: continue_on_error: false
340: env:
...
375: tests\drivers\test_remote_webdriver.py sss [ 69%] 376: tests\drivers\test_service.py ... [ 71%] 377: tests\elements\test_file_upload.py . [ 72%] 378: tests\elements\test_information.py . [ 72%] 379: tests\elements\test_interaction.py . [ 73%] 380: tests\elements\test_locators.py ........ [ 77%] 381: tests\interactions\test_alerts.py ... [ 79%] 382: tests\interactions\test_cookies.py ...... [ 83%] 383: tests\interactions\test_print_options.py ....... [ 87%] 384: tests\interactions\test_prints_page.py . [ 88%] 385: tests\interactions\test_virtual_authenticator.py .......... [ 94%] 386: tests\support\test_expected_conditions.py . [ 94%] 387: tests\support\test_select_list.py ... [ 96%] 388: tests\troubleshooting\test_logging.py . [ 97%] 389: tests\waits\test_waits.py ..... [100%] 390: ================================== FAILURES =================================== 391: ______________________________ test_set_context _______________________________ 392: firefox_driver = <selenium.webdriver.firefox.webdriver.WebDriver (session="5b63fa5d-3ba5-4220-b51e-5d9c5eff3215")> 393: def test_set_context(firefox_driver): 394: driver = firefox_driver 395: > with driver.context(driver.CONTEXT_CHROME): 396: tests\browsers\test_firefox.py:149: 397: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 398: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\contextlib.py:119: in enter 399: return next(self.gen) 400: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\firefox\webdriver.py:107: in context 401: self.set_context(context) 402: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\firefox\webdriver.py:89: in set_context 403: self.execute("SET_CONTEXT", {"context": context}) 404: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\webdriver.py:429: in execute 405: self.error_handler.check_response(response) 406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 407: self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x000002437F8AA0A0> 408: 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"}}'} 409: def check_response(self, response: Dict[str, Any]) -> None: 410: """Checks that a JSON response from the WebDriver does not have an 411: error. 412: :Args: 413: - response - The JSON response from the WebDriver server as a dictionary 414: object. 415: :Raises: If the response contains an error message. 416: """ 417: status = response.get("status", None) 418: if not status or status == ErrorCode.SUCCESS: 419: return 420: value = None 421: message = response.get("message", "") 422: screen: str = response.get("screen", "") 423: stacktrace = None 424: if isinstance(status, int): 425: value_json = response.get("value", None) 426: if value_json and isinstance(value_json, str): 427: import json 428: try: 429: value = json.loads(value_json) 430: if len(value) == 1: 431: value = value["value"] 432: status = value.get("error", None) 433: if not status: 434: status = value.get("status", ErrorCode.UNKNOWN_ERROR) 435: message = value.get("value") or value.get("message") 436: if not isinstance(message, str): 437: value = message 438: message = message.get("message") 439: else: 440: message = value.get("message", None) 441: except ValueError: 442: pass 443: exception_class: Type[WebDriverException] 444: e = ErrorCode() 445: error_codes = [item for item in dir(e) if not item.startswith("__")] 446: for error_code in error_codes: 447: error_info = getattr(ErrorCode, error_code) 448: if isinstance(error_info, list) and status in error_info: 449: exception_class = getattr(ExceptionMapping, error_code, WebDriverException) 450: break ...
466: stacktrace = st_value.split("\n") 467: else: 468: stacktrace = [] 469: try: 470: for frame in st_value: 471: line = frame.get("lineNumber", "") 472: file = frame.get("fileName", "") 473: if line: 474: file = f"{file}:{line}" 475: meth = frame.get("methodName", "") 476: if "className" in frame: 477: meth = f"{frame['className']}.{meth}" 478: msg = " at %s (%s)" 479: msg = msg % (meth, file) 480: stacktrace.append(msg) 481: except TypeError: 482: pass 483: if exception_class == UnexpectedAlertPresentException: 484: alert_text = None 485: if "data" in value: 486: alert_text = value["data"].get("text") 487: elif "alert" in value: 488: alert_text = value["alert"].get("text") 489: raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here 490: > raise exception_class(message, screen, stacktrace) 491: 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. 492: E Stacktrace: 493: E RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 494: E WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5 495: E UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5 496: E set@chrome://remote/content/marionette/driver.sys.mjs:338:13 497: E GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3 498: E despatch@chrome://remote/content/marionette/server.sys.mjs:318:40 499: E execute@chrome://remote/content/marionette/server.sys.mjs:289:16 500: E onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20 501: E onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9 502: E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20 503: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\errorhandler.py:232: WebDriverException 504: =========================== short test summary info =========================== 505: 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. 506: Stacktrace: 507: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 508: WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5 509: UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5 510: set@chrome://remote/content/marionette/driver.sys.mjs:338:13 511: GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3 512: despatch@chrome://remote/content/marionette/server.sys.mjs:318:40 513: execute@chrome://remote/content/marionette/server.sys.mjs:289:16 514: onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20 515: onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9 516: _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20 517: ======= 1 failed, 156 passed, 11 skipped, 3 rerun in 1402.42s (0:23:22) ======= 518: ##[warning]Attempt 1 failed. Reason: Child_process exited with error code 1 519: ##[endgroup] ...
543: tests\drivers\test_remote_webdriver.py sss [ 69%] 544: tests\drivers\test_service.py ... [ 71%] 545: tests\elements\test_file_upload.py . [ 72%] 546: tests\elements\test_information.py . [ 72%] 547: tests\elements\test_interaction.py . [ 73%] 548: tests\elements\test_locators.py ........ [ 77%] 549: tests\interactions\test_alerts.py ... [ 79%] 550: tests\interactions\test_cookies.py ...... [ 83%] 551: tests\interactions\test_print_options.py ....... [ 87%] 552: tests\interactions\test_prints_page.py . [ 88%] 553: tests\interactions\test_virtual_authenticator.py .......... [ 94%] 554: tests\support\test_expected_conditions.py . [ 94%] 555: tests\support\test_select_list.py ... [ 96%] 556: tests\troubleshooting\test_logging.py . [ 97%] 557: tests\waits\test_waits.py ..... [100%] 558: ================================== FAILURES =================================== 559: ______________________________ test_set_context _______________________________ 560: firefox_driver = <selenium.webdriver.firefox.webdriver.WebDriver (session="9310dee2-32c1-4759-9d87-0b9cad294296")> 561: def test_set_context(firefox_driver): 562: driver = firefox_driver 563: > with driver.context(driver.CONTEXT_CHROME): 564: tests\browsers\test_firefox.py:149: 565: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 566: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\contextlib.py:119: in enter 567: return next(self.gen) 568: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\firefox\webdriver.py:107: in context 569: self.set_context(context) 570: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\firefox\webdriver.py:89: in set_context 571: self.execute("SET_CONTEXT", {"context": context}) 572: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\webdriver.py:429: in execute 573: self.error_handler.check_response(response) 574: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 575: self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x0000028BCFFF4AF0> 576: 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"}}'} 577: def check_response(self, response: Dict[str, Any]) -> None: 578: """Checks that a JSON response from the WebDriver does not have an 579: error. 580: :Args: 581: - response - The JSON response from the WebDriver server as a dictionary 582: object. 583: :Raises: If the response contains an error message. 584: """ 585: status = response.get("status", None) 586: if not status or status == ErrorCode.SUCCESS: 587: return 588: value = None 589: message = response.get("message", "") 590: screen: str = response.get("screen", "") 591: stacktrace = None 592: if isinstance(status, int): 593: value_json = response.get("value", None) 594: if value_json and isinstance(value_json, str): 595: import json 596: try: 597: value = json.loads(value_json) 598: if len(value) == 1: 599: value = value["value"] 600: status = value.get("error", None) 601: if not status: 602: status = value.get("status", ErrorCode.UNKNOWN_ERROR) 603: message = value.get("value") or value.get("message") 604: if not isinstance(message, str): 605: value = message 606: message = message.get("message") 607: else: 608: message = value.get("message", None) 609: except ValueError: 610: pass 611: exception_class: Type[WebDriverException] 612: e = ErrorCode() 613: error_codes = [item for item in dir(e) if not item.startswith("__")] 614: for error_code in error_codes: 615: error_info = getattr(ErrorCode, error_code) 616: if isinstance(error_info, list) and status in error_info: 617: exception_class = getattr(ExceptionMapping, error_code, WebDriverException) 618: break ...
634: stacktrace = st_value.split("\n") 635: else: 636: stacktrace = [] 637: try: 638: for frame in st_value: 639: line = frame.get("lineNumber", "") 640: file = frame.get("fileName", "") 641: if line: 642: file = f"{file}:{line}" 643: meth = frame.get("methodName", "") 644: if "className" in frame: 645: meth = f"{frame['className']}.{meth}" 646: msg = " at %s (%s)" 647: msg = msg % (meth, file) 648: stacktrace.append(msg) 649: except TypeError: 650: pass 651: if exception_class == UnexpectedAlertPresentException: 652: alert_text = None 653: if "data" in value: 654: alert_text = value["data"].get("text") 655: elif "alert" in value: 656: alert_text = value["alert"].get("text") 657: raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here 658: > raise exception_class(message, screen, stacktrace) 659: 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. 660: E Stacktrace: 661: E RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 662: E WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5 663: E UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5 664: E set@chrome://remote/content/marionette/driver.sys.mjs:338:13 665: E GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3 666: E despatch@chrome://remote/content/marionette/server.sys.mjs:318:40 667: E execute@chrome://remote/content/marionette/server.sys.mjs:289:16 668: E onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20 669: E onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9 670: E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20 671: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\errorhandler.py:232: WebDriverException 672: =========================== short test summary info =========================== 673: 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. 674: Stacktrace: 675: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 676: WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5 677: UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5 678: set@chrome://remote/content/marionette/driver.sys.mjs:338:13 679: GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3 680: despatch@chrome://remote/content/marionette/server.sys.mjs:318:40 681: execute@chrome://remote/content/marionette/server.sys.mjs:289:16 682: onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20 683: onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9 684: _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20 685: ======= 1 failed, 156 passed, 11 skipped, 3 rerun in 826.50s (0:13:46) ======== 686: ##[warning]Attempt 2 failed. Reason: Child_process exited with error code 1 687: ##[endgroup] ...
711: tests\drivers\test_remote_webdriver.py sss [ 69%] 712: tests\drivers\test_service.py ... [ 71%] 713: tests\elements\test_file_upload.py . [ 72%] 714: tests\elements\test_information.py . [ 72%] 715: tests\elements\test_interaction.py . [ 73%] 716: tests\elements\test_locators.py ........ [ 77%] 717: tests\interactions\test_alerts.py ... [ 79%] 718: tests\interactions\test_cookies.py ...... [ 83%] 719: tests\interactions\test_print_options.py ....... [ 87%] 720: tests\interactions\test_prints_page.py . [ 88%] 721: tests\interactions\test_virtual_authenticator.py .......... [ 94%] 722: tests\support\test_expected_conditions.py . [ 94%] 723: tests\support\test_select_list.py ... [ 96%] 724: tests\troubleshooting\test_logging.py . [ 97%] 725: tests\waits\test_waits.py ..... [100%] 726: ================================== FAILURES =================================== 727: ______________________________ test_set_context _______________________________ 728: firefox_driver = <selenium.webdriver.firefox.webdriver.WebDriver (session="0f9d3ffb-edd2-4e92-9a97-4c94fb1b52bb")> 729: def test_set_context(firefox_driver): 730: driver = firefox_driver 731: > with driver.context(driver.CONTEXT_CHROME): 732: tests\browsers\test_firefox.py:149: 733: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 734: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\contextlib.py:119: in enter 735: return next(self.gen) 736: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\firefox\webdriver.py:107: in context 737: self.set_context(context) 738: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\firefox\webdriver.py:89: in set_context 739: self.execute("SET_CONTEXT", {"context": context}) 740: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\webdriver.py:429: in execute 741: self.error_handler.check_response(response) 742: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 743: self = <selenium.webdriver.remote.errorhandler.ErrorHandler object at 0x000002C8EE5ECDC0> 744: 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"}}'} 745: def check_response(self, response: Dict[str, Any]) -> None: 746: """Checks that a JSON response from the WebDriver does not have an 747: error. 748: :Args: 749: - response - The JSON response from the WebDriver server as a dictionary 750: object. 751: :Raises: If the response contains an error message. 752: """ 753: status = response.get("status", None) 754: if not status or status == ErrorCode.SUCCESS: 755: return 756: value = None 757: message = response.get("message", "") 758: screen: str = response.get("screen", "") 759: stacktrace = None 760: if isinstance(status, int): 761: value_json = response.get("value", None) 762: if value_json and isinstance(value_json, str): 763: import json 764: try: 765: value = json.loads(value_json) 766: if len(value) == 1: 767: value = value["value"] 768: status = value.get("error", None) 769: if not status: 770: status = value.get("status", ErrorCode.UNKNOWN_ERROR) 771: message = value.get("value") or value.get("message") 772: if not isinstance(message, str): 773: value = message 774: message = message.get("message") 775: else: 776: message = value.get("message", None) 777: except ValueError: 778: pass 779: exception_class: Type[WebDriverException] 780: e = ErrorCode() 781: error_codes = [item for item in dir(e) if not item.startswith("__")] 782: for error_code in error_codes: 783: error_info = getattr(ErrorCode, error_code) 784: if isinstance(error_info, list) and status in error_info: 785: exception_class = getattr(ExceptionMapping, error_code, WebDriverException) 786: break ...
802: stacktrace = st_value.split("\n") 803: else: 804: stacktrace = [] 805: try: 806: for frame in st_value: 807: line = frame.get("lineNumber", "") 808: file = frame.get("fileName", "") 809: if line: 810: file = f"{file}:{line}" 811: meth = frame.get("methodName", "") 812: if "className" in frame: 813: meth = f"{frame['className']}.{meth}" 814: msg = " at %s (%s)" 815: msg = msg % (meth, file) 816: stacktrace.append(msg) 817: except TypeError: 818: pass 819: if exception_class == UnexpectedAlertPresentException: 820: alert_text = None 821: if "data" in value: 822: alert_text = value["data"].get("text") 823: elif "alert" in value: 824: alert_text = value["alert"].get("text") 825: raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here 826: > raise exception_class(message, screen, stacktrace) 827: 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. 828: E Stacktrace: 829: E RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 830: E WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5 831: E UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5 832: E set@chrome://remote/content/marionette/driver.sys.mjs:338:13 833: E GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3 834: E despatch@chrome://remote/content/marionette/server.sys.mjs:318:40 835: E execute@chrome://remote/content/marionette/server.sys.mjs:289:16 836: E onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20 837: E onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9 838: E _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20 839: C:\hostedtoolcache\windows\Python\3.9.13\x64\lib\site-packages\selenium\webdriver\remote\errorhandler.py:232: WebDriverException 840: =========================== short test summary info =========================== 841: 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. 842: Stacktrace: 843: RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8 844: WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:199:5 845: UnsupportedOperationError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:927:5 846: set@chrome://remote/content/marionette/driver.sys.mjs:338:13 847: GeckoDriver.prototype.setContext@chrome://remote/content/marionette/driver.sys.mjs:811:3 848: despatch@chrome://remote/content/marionette/server.sys.mjs:318:40 849: execute@chrome://remote/content/marionette/server.sys.mjs:289:16 850: onPacket/<@chrome://remote/content/marionette/server.sys.mjs:262:20 851: onPacket@chrome://remote/content/marionette/server.sys.mjs:263:9 852: _onJSONObjectReady/<@chrome://remote/content/marionette/transport.sys.mjs:494:20 853: ======= 1 failed, 156 passed, 11 skipped, 3 rerun in 790.67s (0:13:10) ======== 854: ##[endgroup] 855: ##[error]Final attempt failed. Child_process exited with error code 1 856: Post job cleanup.