shauryauppal / PyWhatsapp

Python Automation using selenium & Scheduling of messages and media
https://www.linkedin.com/in/shaurya-uppal
Apache License 2.0
455 stars 159 forks source link

Getting Error #10

Closed Sidbaba closed 5 years ago

Sidbaba commented 5 years ago

File "PyWhatsapp.py", line 47, in whatsapp_login browser.maximize_window() File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 736, in maximize_window self.execute(command, params) File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute self.error_handler.check_response(response) File "/usr/local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot get automation extension from unknown error: page could not be found: chrome-extension://aapnijgdinlhnhlmodcfapnahmbfebeb/_generated_background_page.html (Session info: chrome=68.0.3440.106)

shauryauppal commented 5 years ago

This is environment setup error.

Pip install selenium

Use python3 if possible. Recheck webdriver path given

shauryauppal commented 5 years ago

Go through the installation section.

Sidbaba commented 5 years ago

Worked well how can I send msg to a number without saving ?

On Sun, Sep 9, 2018, 9:53 PM Shaurya Uppal notifications@github.com wrote:

Go through the installation section.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shauryauppal/PyWhatsapp/issues/10#issuecomment-419727147, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHIYi-f0ybsNFuHG1FwGMwv2-R0Fa9Mks5uZUB9gaJpZM4WgV5c .

shauryauppal commented 5 years ago

Thanks a lot for raising this point, that will be my next task now. Will soon implement that. Till now that is not implemented.

@Sidbaba 👍

Sorry for now you have to save that number and that number should be in your recent chats section.

Not in all contacts section.

shauryauppal commented 5 years ago

I surely come up with, without saving contact add-on in a week or two. Currently a bit busy with work.

I hope the reason for with the issue is raised is solved. Closing the Issue.

Sidbaba commented 5 years ago

Your welcome buddy , I m also working on kinda same thing plz check api.whatsapp.com/?phone=number&msg= something like this using this we can open unknown number in chat window and all we need to automate click button , not sure will work just a thought anyways awesome code you have written Thanks

On Sun, Sep 9, 2018, 10:22 PM Shaurya Uppal notifications@github.com wrote:

Thanks a lot for raising this point, that will be my next task now. Will soon implement that. Till now that is not implemented.

@Sidbaba https://github.com/Sidbaba 👍

Sorry for now you have to save that number and that number should be in your recent chats section.

Not in all contacts section.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shauryauppal/PyWhatsapp/issues/10#issuecomment-419728978, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHIYpFayBTBuzDfsBxeW-C55qVdCZbhks5uZUcxgaJpZM4WgV5c .

shauryauppal commented 5 years ago

https://www.timesnownews.com/technology-science/article/whatsapp-how-to-start-a-whatsapp-chat-without-saving-number-on-your-smartphone/281632

Yes, I read this article on news. Hot topic on news for whatsapp.

shauryauppal commented 5 years ago

Just a matter of few more lines will surely come up with this before next Sunday.

Sidbaba commented 5 years ago

Cool bro ....

On Sun, Sep 9, 2018, 10:30 PM Shaurya Uppal notifications@github.com wrote:

Just a matter of few more lines will surely come up with this before next Sunday.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shauryauppal/PyWhatsapp/issues/10#issuecomment-419729477, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHIYmvAQz7xVeSvEkle1NSfCt4xyNutks5uZUkfgaJpZM4WgV5c .

Sidbaba commented 5 years ago

BTW I have modified your code and implemented that functionality only problem is that send button click is not working it's opening the number with perpopulated msg in web.whatsapp window but not clicking the send button

On Sun, Sep 9, 2018, 10:31 PM Siddhant Kulshrestha imsiddhantt@gmail.com wrote:

Cool bro ....

On Sun, Sep 9, 2018, 10:30 PM Shaurya Uppal notifications@github.com wrote:

Just a matter of few more lines will surely come up with this before next Sunday.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shauryauppal/PyWhatsapp/issues/10#issuecomment-419729477, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHIYmvAQz7xVeSvEkle1NSfCt4xyNutks5uZUkfgaJpZM4WgV5c .

shauryauppal commented 5 years ago

@Sidbaba Issue resolved Feature added. 👍

Now you can send messages to unsaved contacts also.

Sidbaba commented 5 years ago

Awesome

On Sun, Sep 16, 2018, 5:02 PM Shaurya Uppal notifications@github.com wrote:

@Sidbaba https://github.com/Sidbaba Issue resolved Feature added. 👍

Now you can send messages to unsaved contacts also.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/shauryauppal/PyWhatsapp/issues/10#issuecomment-421749689, or mute the thread https://github.com/notifications/unsubscribe-auth/AWHIYscrGt0uXzfnvK8MaCU5icUl_E02ks5ubjbKgaJpZM4WgV5c .