please help me
wapi.js error cannot be started, the wapi.js file has the latest updates, but still cannot be started.
error description:
"Cannot read property 'off' of undefined",
"WAPI.waitnewmessages is not function"
please help me :(

Hello, @kivlanzein .
try to use this fix: #888
Thanks! Work's for me!
Hello, @kivlanzein .
try to use this fix: #888
after update :
if driver.is_connected() == False:
File "webwhatsapi/__init__.py", line 315, in is_connected
return self.wapi_functions.isConnected()
File "webwhatsapi/wapi_js_wrapper.py", line 44, in __getattr__
wapi_functions = dir(self)
File "webwhatsapi/wapi_js_wrapper.py", line 72, in __dir__
self.driver.execute_script(script.read())
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script
'args': converted_args})['value']
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, 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: SyntaxError: unexpected token: identifier
Hello, @kivlanzein .
try to use this fix: #888
thank you very much for your solution, Work's for me!
Hello, @kivlanzein .
try to use this fix: #888after update :
if driver.is_connected() == False:File "webwhatsapi/init.py", line 315, in is_connected
return self.wapi_functions.isConnected()
File "webwhatsapi/wapi_js_wrapper.py", line 44, in getattr
wapi_functions = dir(self)
File "webwhatsapi/wapi_js_wrapper.py", line 72, in dir
self.driver.execute_script(script.read())
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 636, in execute_script
'args': converted_args})['value']
File "/usr/local/lib/python3.5/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, 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: SyntaxError: unexpected token: identifier
I use javascript programming, and I try to successfully run the file wapi.js
A better solution:
Most helpful comment
Hello, @kivlanzein .
try to use this fix: #888