Webwhatsapp-wrapper: Running the Demo.

Created on 24 Mar 2018  路  10Comments  路  Source: mukulhase/WebWhatsapp-Wrapper

Hey there,

i wonder it looks like no HTML/Styles gets loaded on running the sample opening web.whatsapp.com. Is this normal? Looks like this to me:

https://s18.postimg.org/4a7mpexmx/web.whatsapp-api.png

discussion help needed

Most helpful comment

@DanielUnn

Of course, put this parameter that will work ...

driver = WhatsAPIDriver(loadstyles=True);

All 10 comments

Hi.
I have run the demo and it seems for technical purposes between the gekko driver in firefox interpretation and sotage of the bar code and further interaction it loads this way, and works perfectly

Oh somebody replies here :) ...

Running the demo ends into this error now after the QR code was scanned.

python echo.py

Waiting for QR
Traceback (most recent call last):
File "echo.py", line 7, in
driver.wait_for_login()
File "/root/WebWhatsAPI/webwhatsapi/__init__.py", line 250, in wait_for_login
EC.visibility_of_element_located((By.CSS_SELECTOR, self._SELECTORS['mainPage']))
File "/usr/lib/python2.7/site-packages/selenium-3.11.0-py2.7.egg/selenium/webdriver/support/wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

I have the same problem, can anyone help us?

I modified the instance of the class, I do not know what can cause this change @mukulhase

this solution also worked #139

image

image

Is this issue resolved?

yes

@WilliamCampolina Hi there, my whatapps doesn't load as it should look like.
I tried self.driver = webdriver.Firefox(capabilities=capabilities, **extra_params) but still same.

Can you please help me on this? Thanks.

wa

@DanielUnn

Of course, put this parameter that will work ...

driver = WhatsAPIDriver(loadstyles=True);

@WilliamCampolina Thanks man. I tried it out with =False as in README.md, it says

loadstyle: Default is true. If true, doesn't load the styling in the browser.

And, can I ask you about the SELENIUM environment variable path in remote.py also? I set it for gecko driver path and I got the error as below. May I know how should I set it?

LocationParseError: Failed to parse: C:\Users\Daniel\Desktop\geckodriver-v0.21.0-win64

Thank you for taking your time with me. Appreciate it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mhndm picture mhndm  路  5Comments

alfred82santa picture alfred82santa  路  5Comments

EdisonHundLucas picture EdisonHundLucas  路  6Comments

NolanWang picture NolanWang  路  5Comments

Zingers-ZA picture Zingers-ZA  路  6Comments