WebWhatsapp-Wrapper: driver.get_unread() throwing exception

The driver.get_unread() method is throwing the following exception:

Traceback (most recent call last): File "/home/comida/whatsapp_script/prueba_location.py", line 14, in <module> for contact in driver.get_unread(): File "/usr/local/lib/python3.5/dist-packages/webwhatsapi/__init__.py", line 327, in get_unread raw_message_groups = self.wapi_functions.getUnreadMessages(include_me, include_notifications, use_unread_count) File "/usr/local/lib/python3.5/dist-packages/webwhatsapi/wapi_js_wrapper.py", line 28, in __getattr__ wapi_functions = dir(self) File "/usr/local/lib/python3.5/dist-packages/webwhatsapi/wapi_js_wrapper.py", line 46, in __dir__ self.driver.execute_script(script.read()) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 629, in execute_script 'args': converted_args})['value'] File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 314, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.JavascriptException: Message: TypeError: document.querySelector(...)._reactRootContainer.current is undefined

Could someone help me with this??

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 4
  • Comments: 16 (5 by maintainers)

Most upvoted comments

replace WAPI.js to WAPI.js from this github