Webwhatsapp-wrapper: wapi.js error javascript error

Created on 4 Jun 2020  路  6Comments  路  Source: mukulhase/WebWhatsapp-Wrapper

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 :(

Screenshot_11

Most helpful comment

Hello, @kivlanzein .

try to use this fix: #888

All 6 comments

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: #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

I use javascript programming, and I try to successfully run the file wapi.js

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NolanWang picture NolanWang  路  5Comments

shakraw picture shakraw  路  5Comments

juancrescente picture juancrescente  路  4Comments

Zingers-ZA picture Zingers-ZA  路  6Comments

dmreinoso picture dmreinoso  路  3Comments