robbrad / UKBinCollectionData

UK Council Bin Collection Data Parser Outputting Bin Data as a JSON
MIT License
105 stars 73 forks source link

Cheshire West & Chester Council Sensor Bug #693

Closed jamescorday closed 1 month ago

jamescorday commented 2 months ago

Name of Council

Cheshire West & Chester Council

Issue Information

This error originated from a custom integration.

Logger: custom_components.uk_bin_collection.sensor
Source: helpers/update_coordinator.py:315
integration: UK Bin Collection Data (documentation, issues)
First occurred: 14:29:05 (1 occurrences)
Last logged: 14:29:05

Unexpected error fetching Home data: Message: element click intercepted: Element is not clickable at point (174, 901) (Session info: chrome-headless-shell=124.0.6367.78) Stacktrace: #0 0x00558d227d44 <unknown> #1 0x00558cf4e374 <unknown> #2 0x00558cf8fb44 <unknown> #3 0x00558cf8e778 <unknown> #4 0x00558cf8cf7c <unknown> #5 0x00558cf8c734 <unknown> #6 0x00558cf838a4 <unknown> #7 0x00558cf83370 <unknown> #8 0x00558cfc8400 <unknown> #9 0x00558cf814a4 <unknown> #10 0x00558cf820e0 <unknown> #11 0x00558d1f5ac0 <unknown> #12 0x00558d1f8a64 <unknown> #13 0x00558d1f8630 <unknown> #14 0x00558d1e6d6c <unknown> #15 0x00558d1f9128 <unknown> #16 0x00558d1d1010 <unknown> #17 0x00558d218550 <unknown> #18 0x00558d218758 <unknown> #19 0x00558d227250 <unknown> #20 0x007f87cfee58 <unknown> #21 0x007f87d67f9c <unknown>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/uk_bin_collection/sensor.py", line 133, in _async_update_data
    data = await self.hass.async_add_executor_job(self.ukbcd.run)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 96, in run
    return self.client_code(
           ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/collect_data.py", line 115, in client_code
    return get_bin_data_class.template_method(address_url, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/get_bin_data.py", line 78, in template_method
    bin_data_dict = self.parse_data(
                    ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/uk_bin_collection/uk_bin_collection/councils/CheshireWestAndChesterCouncil.py", line 55, in parse_data
    find_collection_button.click()
  File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webelement.py", line 94, in click
    self._execute(Command.CLICK_ELEMENT)
  File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webelement.py", line 395, in _execute
    return self._parent.execute(command, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py", line 347, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.12/site-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element is not clickable at point (174, 901)
  (Session info: chrome-headless-shell=124.0.6367.78)
Stacktrace:
#0 0x00558d227d44 <unknown>
#1 0x00558cf4e374 <unknown>
#2 0x00558cf8fb44 <unknown>
#3 0x00558cf8e778 <unknown>
#4 0x00558cf8cf7c <unknown>
#5 0x00558cf8c734 <unknown>
#6 0x00558cf838a4 <unknown>
#7 0x00558cf83370 <unknown>
#8 0x00558cfc8400 <unknown>
#9 0x00558cf814a4 <unknown>
#10 0x00558cf820e0 <unknown>
#11 0x00558d1f5ac0 <unknown>
#12 0x00558d1f8a64 <unknown>
#13 0x00558d1f8630 <unknown>
#14 0x00558d1e6d6c <unknown>
#15 0x00558d1f9128 <unknown>
#16 0x00558d1d1010 <unknown>
#17 0x00558d218550 <unknown>
#18 0x00558d218758 <unknown>
#19 0x00558d227250 <unknown>
#20 0x007f87cfee58 <unknown>
#21 0x007f87d67f9c <unknown>

Hi, getting the above error from Home Assistant when I add the council options. I'm using seleniarm in docker and tested Arun Council and this one works okay and I get a response.

Thanks

Verification

robbrad commented 1 month ago

@jamescorday - I have fixed this as the site had changed. One small change for you - you are going to need the UPRN of your property : see https://uprn.uk

jamescorday commented 1 month ago

Thankyou @robbrad 🙂

robbrad commented 1 month ago

@jamescorday : Release is running now.... Refresh your custom comp.

jamescorday commented 1 month ago

Working now, thanks @robbrad Screenshot 2024-05-18 at 11 03 22