Skip to content
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

chore(deps): update dependency selenium to v4.26.1 #2032

Merged
merged 3 commits into from
Nov 1, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 31, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
selenium ==4.26.0 -> ==4.26.1 age adoption passing confidence

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 Oct 31, 2024

Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit 04f439d
🔍 Latest deploy log https://app.netlify.com/sites/selenium-dev/deploys/6723ff16b5b77800082dcc64
😎 Deploy Preview https://deploy-preview-2032--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 Oct 31, 2024

CI Failure Feedback 🧐

(Checks updated until commit 04f439d)

Action: tests (macos, stable)

Failed stage: Run tests [❌]

Failed test name: test_basic_options

Failure summary:

The action failed due to multiple test failures:

  • test_basic_options and test_enable_logging in tests/browsers/test_safari.py failed because of a
    TypeError. The SafariRemoteConnection initialization is missing a required positional argument:
    remote_server_addr.
  • test_mutation in tests/bidi/cdp/test_script.py failed due to an InvalidSelectorException caused by
    an invalid or illegal selector specified in a Selenium WebDriver command.
  • test_pauses in tests/actions_api/test_actions.py failed due to an AssertionError. The test expected
    the duration to be less than 3 seconds, but it was 3.1665289402008057 seconds.

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  macOS
    ...
    
    152:  Installing collected packages: pip
    153:  Successfully installed pip-24.3.1
    154:  Install OpenSSL certificates
    155:  Collecting certifi
    156:  Using cached certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
    157:  Using cached certifi-2024.8.30-py3-none-any.whl (167 kB)
    158:  Installing collected packages: certifi
    159:  Successfully installed certifi-2024.8.30
    160:  ##[error][notice] A new release of pip is available: 21.1.1 -> 24.3.1
    ...
    
    310:  timeout_minutes: 20
    311:  max_attempts: 3
    312:  command: cd examples/python
    313:  pytest
    314:  
    315:  retry_wait_seconds: 10
    316:  polling_interval_seconds: 1
    317:  warning_on_retry: true
    318:  continue_on_error: false
    ...
    
    354:  tests/elements/test_file_upload.py .                                     [ 77%]
    355:  tests/interactions/test_alerts.py ...                                    [ 79%]
    356:  tests/interactions/test_print_options.py .......                         [ 84%]
    357:  tests/interactions/test_prints_page.py .                                 [ 85%]
    358:  tests/interactions/test_virtual_authenticator.py ..........              [ 93%]
    359:  tests/support/test_select_list.py ...                                    [ 95%]
    360:  tests/troubleshooting/test_logging.py .                                  [ 96%]
    361:  tests/waits/test_waits.py .....                                          [100%]
    362:  =================================== FAILURES ===================================
    ...
    
    414:  |     raise exception.with_traceback(exception.__traceback__)
    415:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pluggy/_callers.py", line 103, in _multicall
    416:  |     res = hook_impl.function(*args)
    417:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
    418:  |     result = testfunction(**testargs)
    419:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 348, in wrapper
    420:  |     return run(partial(fn, **kwargs), clock=clock, instruments=instruments)
    421:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 2407, in run
    422:  |     raise runner.main_task_outcome.error
    423:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test
    424:  |     raise test_ctx.error_list[0]
    425:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 197, in _fixture_manager
    426:  |     nursery_fixture.cancel_scope.cancel()
    427:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 1039, in __aexit__
    428:  |     raise combined_error_from_nursery
    ...
    
    439:  |     await self.gen.athrow(typ, value, traceback)
    440:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 1081, in bidi_connection
    441:  |     yield BidiConnection(session, cdp, devtools)
    442:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 189, in __aexit__
    443:  |     await self.gen.athrow(typ, value, traceback)
    444:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/common/bidi/cdp.py", line 489, in open_cdp
    445:  |     await conn.aclose()
    446:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 1039, in __aexit__
    447:  |     raise combined_error_from_nursery
    ...
    
    456:  |     driver.find_element(By.ID, "reveal").click()
    457:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 178, in __aexit__
    458:  |     await self.gen.__anext__()
    459:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/common/log.py", line 93, in mutation_events
    460:  |     elements: list = self.driver.find_elements(By.CSS_SELECTOR, f"*[data-__webdriver_id={payload['target']}]")
    461:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 788, in find_elements
    462:  |     return self.execute(Command.FIND_ELEMENTS, {"using": by, "value": value})["value"] or []
    463:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 380, in execute
    464:  |     self.error_handler.check_response(response)
    465:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    466:  |     raise exception_class(message, screen, stacktrace)
    467:  | selenium.common.exceptions.InvalidSelectorException: Message: invalid selector
    468:  | from javascript error: {"status":32,"value":"An invalid or illegal selector was specified"}
    469:  |   (Session info: chrome=130.0.6723.59); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#invalid-selector-exception
    ...
    
    492:  +------------------------------------
    493:  ______________________________ test_basic_options ______________________________
    494:  @pytest.mark.skipif(sys.platform != "darwin", reason="requires Mac")
    495:  def test_basic_options():
    496:  options = webdriver.SafariOptions()
    497:  >       driver = webdriver.Safari(options=options)
    498:  tests/browsers/test_safari.py:10: 
    499:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    500:  self = <[AttributeError("'WebDriver' object has no attribute 'session_id'") raised in repr()] WebDriver object at 0x105a4ba30>
    ...
    
    520:  self.service.path = self.service.env_path() or DriverFinder(self.service, options).get_driver_path()
    521:  if not self.service.reuse_service:
    522:  self.service.start()
    523:  client_config = ClientConfig(remote_server_addr=self.service.service_url, keep_alive=keep_alive, timeout=120)
    524:  >       executor = SafariRemoteConnection(
    525:  ignore_proxy=options._ignore_local_proxy,
    526:  client_config=client_config,
    527:  )
    528:  E       TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    529:  /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/safari/webdriver.py:55: TypeError
    530:  _____________________________ test_enable_logging ______________________________
    531:  @pytest.mark.skipif(sys.platform != "darwin", reason="requires Mac")
    532:  def test_enable_logging():
    533:  service = webdriver.SafariService(service_args=["--diagnose"])
    534:  >       driver = webdriver.Safari(service=service)
    535:  tests/browsers/test_safari.py:19: 
    536:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    537:  self = <[AttributeError("'WebDriver' object has no attribute 'session_id'") raised in repr()] WebDriver object at 0x10527f4f0>
    ...
    
    557:  self.service.path = self.service.env_path() or DriverFinder(self.service, options).get_driver_path()
    558:  if not self.service.reuse_service:
    559:  self.service.start()
    560:  client_config = ClientConfig(remote_server_addr=self.service.service_url, keep_alive=keep_alive, timeout=120)
    561:  >       executor = SafariRemoteConnection(
    562:  ignore_proxy=options._ignore_local_proxy,
    563:  client_config=client_config,
    564:  )
    565:  E       TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    566:  /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/safari/webdriver.py:55: TypeError
    ...
    
    574:  tests/bidi/test_bidi_logging.py:30
    575:  /Users/runner/work/seleniumhq.github.io/seleniumhq.github.io/examples/python/tests/bidi/test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    576:  @pytest.mark.driver_type("bidi")
    577:  tests/bidi/test_bidi_logging.py:42
    578:  /Users/runner/work/seleniumhq.github.io/seleniumhq.github.io/examples/python/tests/bidi/test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    579:  @pytest.mark.driver_type("bidi")
    580:  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    581:  =========================== short test summary info ============================
    582:  FAILED tests/bidi/cdp/test_script.py::test_mutation - exceptiongroup.ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
    583:  FAILED tests/browsers/test_safari.py::test_basic_options - TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    584:  FAILED tests/browsers/test_safari.py::test_enable_logging - TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    585:  ======= 3 failed, 121 passed, 7 skipped, 4 warnings in 269.94s (0:04:29) =======
    586:  ##[warning]Attempt 1 failed. Reason: Child_process exited with error code 1
    ...
    
    610:  tests/elements/test_file_upload.py .                                     [ 77%]
    611:  tests/interactions/test_alerts.py ...                                    [ 79%]
    612:  tests/interactions/test_print_options.py .......                         [ 84%]
    613:  tests/interactions/test_prints_page.py .                                 [ 85%]
    614:  tests/interactions/test_virtual_authenticator.py ..........              [ 93%]
    615:  tests/support/test_select_list.py ...                                    [ 95%]
    616:  tests/troubleshooting/test_logging.py .                                  [ 96%]
    617:  tests/waits/test_waits.py .....                                          [100%]
    618:  =================================== FAILURES ===================================
    ...
    
    670:  |     raise exception.with_traceback(exception.__traceback__)
    671:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pluggy/_callers.py", line 103, in _multicall
    672:  |     res = hook_impl.function(*args)
    673:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
    674:  |     result = testfunction(**testargs)
    675:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 348, in wrapper
    676:  |     return run(partial(fn, **kwargs), clock=clock, instruments=instruments)
    677:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 2407, in run
    678:  |     raise runner.main_task_outcome.error
    679:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test
    680:  |     raise test_ctx.error_list[0]
    681:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 197, in _fixture_manager
    682:  |     nursery_fixture.cancel_scope.cancel()
    683:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 1039, in __aexit__
    684:  |     raise combined_error_from_nursery
    ...
    
    695:  |     await self.gen.athrow(typ, value, traceback)
    696:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 1081, in bidi_connection
    697:  |     yield BidiConnection(session, cdp, devtools)
    698:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 189, in __aexit__
    699:  |     await self.gen.athrow(typ, value, traceback)
    700:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/common/bidi/cdp.py", line 489, in open_cdp
    701:  |     await conn.aclose()
    702:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 1039, in __aexit__
    703:  |     raise combined_error_from_nursery
    ...
    
    712:  |     driver.find_element(By.ID, "reveal").click()
    713:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 178, in __aexit__
    714:  |     await self.gen.__anext__()
    715:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/common/log.py", line 93, in mutation_events
    716:  |     elements: list = self.driver.find_elements(By.CSS_SELECTOR, f"*[data-__webdriver_id={payload['target']}]")
    717:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 788, in find_elements
    718:  |     return self.execute(Command.FIND_ELEMENTS, {"using": by, "value": value})["value"] or []
    719:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 380, in execute
    720:  |     self.error_handler.check_response(response)
    721:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    722:  |     raise exception_class(message, screen, stacktrace)
    723:  | selenium.common.exceptions.InvalidSelectorException: Message: invalid selector
    724:  | from javascript error: {"status":32,"value":"An invalid or illegal selector was specified"}
    725:  |   (Session info: chrome=130.0.6723.59); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#invalid-selector-exception
    ...
    
    748:  +------------------------------------
    749:  ______________________________ test_basic_options ______________________________
    750:  @pytest.mark.skipif(sys.platform != "darwin", reason="requires Mac")
    751:  def test_basic_options():
    752:  options = webdriver.SafariOptions()
    753:  >       driver = webdriver.Safari(options=options)
    754:  tests/browsers/test_safari.py:10: 
    755:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    756:  self = <[AttributeError("'WebDriver' object has no attribute 'session_id'") raised in repr()] WebDriver object at 0x10597bfa0>
    ...
    
    776:  self.service.path = self.service.env_path() or DriverFinder(self.service, options).get_driver_path()
    777:  if not self.service.reuse_service:
    778:  self.service.start()
    779:  client_config = ClientConfig(remote_server_addr=self.service.service_url, keep_alive=keep_alive, timeout=120)
    780:  >       executor = SafariRemoteConnection(
    781:  ignore_proxy=options._ignore_local_proxy,
    782:  client_config=client_config,
    783:  )
    784:  E       TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    785:  /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/safari/webdriver.py:55: TypeError
    786:  _____________________________ test_enable_logging ______________________________
    787:  @pytest.mark.skipif(sys.platform != "darwin", reason="requires Mac")
    788:  def test_enable_logging():
    789:  service = webdriver.SafariService(service_args=["--diagnose"])
    790:  >       driver = webdriver.Safari(service=service)
    791:  tests/browsers/test_safari.py:19: 
    792:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    793:  self = <[AttributeError("'WebDriver' object has no attribute 'session_id'") raised in repr()] WebDriver object at 0x10506afa0>
    ...
    
    813:  self.service.path = self.service.env_path() or DriverFinder(self.service, options).get_driver_path()
    814:  if not self.service.reuse_service:
    815:  self.service.start()
    816:  client_config = ClientConfig(remote_server_addr=self.service.service_url, keep_alive=keep_alive, timeout=120)
    817:  >       executor = SafariRemoteConnection(
    818:  ignore_proxy=options._ignore_local_proxy,
    819:  client_config=client_config,
    820:  )
    821:  E       TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    822:  /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/safari/webdriver.py:55: TypeError
    ...
    
    830:  tests/bidi/test_bidi_logging.py:30
    831:  /Users/runner/work/seleniumhq.github.io/seleniumhq.github.io/examples/python/tests/bidi/test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    832:  @pytest.mark.driver_type("bidi")
    833:  tests/bidi/test_bidi_logging.py:42
    834:  /Users/runner/work/seleniumhq.github.io/seleniumhq.github.io/examples/python/tests/bidi/test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    835:  @pytest.mark.driver_type("bidi")
    836:  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    837:  =========================== short test summary info ============================
    838:  FAILED tests/bidi/cdp/test_script.py::test_mutation - exceptiongroup.ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
    839:  FAILED tests/browsers/test_safari.py::test_basic_options - TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    840:  FAILED tests/browsers/test_safari.py::test_enable_logging - TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    841:  ======= 3 failed, 121 passed, 7 skipped, 4 warnings in 505.57s (0:08:25) =======
    842:  ##[warning]Attempt 2 failed. Reason: Child_process exited with error code 1
    ...
    
    866:  tests/elements/test_file_upload.py .                                     [ 77%]
    867:  tests/interactions/test_alerts.py ...                                    [ 79%]
    868:  tests/interactions/test_print_options.py .......                         [ 84%]
    869:  tests/interactions/test_prints_page.py .                                 [ 85%]
    870:  tests/interactions/test_virtual_authenticator.py ..........              [ 93%]
    871:  tests/support/test_select_list.py ...                                    [ 95%]
    872:  tests/troubleshooting/test_logging.py .                                  [ 96%]
    873:  tests/waits/test_waits.py .....                                          [100%]
    874:  =================================== FAILURES ===================================
    ...
    
    884:  .click_and_hold()\
    885:  .pause(1)\
    886:  .send_keys("abc")\
    887:  .perform()
    888:  duration = time() - start
    889:  assert duration > 2
    890:  >       assert duration < 3
    891:  E       assert 3.1665289402008057 < 3
    892:  tests/actions_api/test_actions.py:24: AssertionError
    ...
    
    944:  |     raise exception.with_traceback(exception.__traceback__)
    945:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pluggy/_callers.py", line 103, in _multicall
    946:  |     res = hook_impl.function(*args)
    947:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call
    948:  |     result = testfunction(**testargs)
    949:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 348, in wrapper
    950:  |     return run(partial(fn, **kwargs), clock=clock, instruments=instruments)
    951:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 2407, in run
    952:  |     raise runner.main_task_outcome.error
    953:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 426, in _bootstrap_fixtures_and_run_test
    954:  |     raise test_ctx.error_list[0]
    955:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pytest_trio/plugin.py", line 197, in _fixture_manager
    956:  |     nursery_fixture.cancel_scope.cancel()
    957:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 1039, in __aexit__
    958:  |     raise combined_error_from_nursery
    ...
    
    969:  |     await self.gen.athrow(typ, value, traceback)
    970:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 1081, in bidi_connection
    971:  |     yield BidiConnection(session, cdp, devtools)
    972:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 189, in __aexit__
    973:  |     await self.gen.athrow(typ, value, traceback)
    974:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/common/bidi/cdp.py", line 489, in open_cdp
    975:  |     await conn.aclose()
    976:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/trio/_core/_run.py", line 1039, in __aexit__
    977:  |     raise combined_error_from_nursery
    ...
    
    986:  |     driver.find_element(By.ID, "reveal").click()
    987:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/contextlib.py", line 178, in __aexit__
    988:  |     await self.gen.__anext__()
    989:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/common/log.py", line 93, in mutation_events
    990:  |     elements: list = self.driver.find_elements(By.CSS_SELECTOR, f"*[data-__webdriver_id={payload['target']}]")
    991:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 788, in find_elements
    992:  |     return self.execute(Command.FIND_ELEMENTS, {"using": by, "value": value})["value"] or []
    993:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 380, in execute
    994:  |     self.error_handler.check_response(response)
    995:  |   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    996:  |     raise exception_class(message, screen, stacktrace)
    997:  | selenium.common.exceptions.InvalidSelectorException: Message: invalid selector
    998:  | from javascript error: {"status":32,"value":"An invalid or illegal selector was specified"}
    999:  |   (Session info: chrome=130.0.6723.59); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#invalid-selector-exception
    ...
    
    1022:  +------------------------------------
    1023:  ______________________________ test_basic_options ______________________________
    1024:  @pytest.mark.skipif(sys.platform != "darwin", reason="requires Mac")
    1025:  def test_basic_options():
    1026:  options = webdriver.SafariOptions()
    1027:  >       driver = webdriver.Safari(options=options)
    1028:  tests/browsers/test_safari.py:10: 
    1029:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    1030:  self = <[AttributeError("'WebDriver' object has no attribute 'session_id'") raised in repr()] WebDriver object at 0x1051c6370>
    ...
    
    1050:  self.service.path = self.service.env_path() or DriverFinder(self.service, options).get_driver_path()
    1051:  if not self.service.reuse_service:
    1052:  self.service.start()
    1053:  client_config = ClientConfig(remote_server_addr=self.service.service_url, keep_alive=keep_alive, timeout=120)
    1054:  >       executor = SafariRemoteConnection(
    1055:  ignore_proxy=options._ignore_local_proxy,
    1056:  client_config=client_config,
    1057:  )
    1058:  E       TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    1059:  /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/safari/webdriver.py:55: TypeError
    1060:  _____________________________ test_enable_logging ______________________________
    1061:  @pytest.mark.skipif(sys.platform != "darwin", reason="requires Mac")
    1062:  def test_enable_logging():
    1063:  service = webdriver.SafariService(service_args=["--diagnose"])
    1064:  >       driver = webdriver.Safari(service=service)
    1065:  tests/browsers/test_safari.py:19: 
    1066:  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
    1067:  self = <[AttributeError("'WebDriver' object has no attribute 'session_id'") raised in repr()] WebDriver object at 0x1049dddf0>
    ...
    
    1087:  self.service.path = self.service.env_path() or DriverFinder(self.service, options).get_driver_path()
    1088:  if not self.service.reuse_service:
    1089:  self.service.start()
    1090:  client_config = ClientConfig(remote_server_addr=self.service.service_url, keep_alive=keep_alive, timeout=120)
    1091:  >       executor = SafariRemoteConnection(
    1092:  ignore_proxy=options._ignore_local_proxy,
    1093:  client_config=client_config,
    1094:  )
    1095:  E       TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    1096:  /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/selenium/webdriver/safari/webdriver.py:55: TypeError
    ...
    
    1104:  tests/bidi/test_bidi_logging.py:30
    1105:  /Users/runner/work/seleniumhq.github.io/seleniumhq.github.io/examples/python/tests/bidi/test_bidi_logging.py:30: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    1106:  @pytest.mark.driver_type("bidi")
    1107:  tests/bidi/test_bidi_logging.py:42
    1108:  /Users/runner/work/seleniumhq.github.io/seleniumhq.github.io/examples/python/tests/bidi/test_bidi_logging.py:42: PytestUnknownMarkWarning: Unknown pytest.mark.driver_type - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/how-to/mark.html
    1109:  @pytest.mark.driver_type("bidi")
    1110:  -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
    1111:  =========================== short test summary info ============================
    1112:  FAILED tests/actions_api/test_actions.py::test_pauses - assert 3.1665289402008057 < 3
    1113:  FAILED tests/bidi/cdp/test_script.py::test_mutation - exceptiongroup.ExceptionGroup: Exceptions from Trio nursery (1 sub-exception)
    1114:  FAILED tests/browsers/test_safari.py::test_basic_options - TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    1115:  FAILED tests/browsers/test_safari.py::test_enable_logging - TypeError: __init__() missing 1 required positional argument: 'remote_server_addr'
    1116:  ======= 4 failed, 120 passed, 7 skipped, 4 warnings in 751.57s (0:12:31) =======
    1117:  ##[error]Final attempt failed. Child_process exited with error code 1
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    Copy link
    Contributor Author

    renovate bot commented Oct 31, 2024

    Edited/Blocked Notification

    Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

    You can manually request rebase by checking the rebase/retry box above.

    ⚠️ Warning: custom changes will be lost.

    @VietND96 VietND96 merged commit 6e06acf into trunk Nov 1, 2024
    9 of 12 checks passed
    @VietND96 VietND96 deleted the renovate/selenium-4.x branch November 1, 2024 01:19
    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.

    1 participant