Kalebu / alright

Python wrapper for WhatsApp web-based on selenium
https://www.youtube.com/watch?v=yitQTt-NukM
MIT License
355 stars 109 forks source link

Update __init__.py #73

Closed theCJMan closed 1 year ago

theCJMan commented 2 years ago

The idea is to have one code function to send both Vids and Pics as the same functionality applies def send_vid_pic(self, vid_pic, message=" "):

send_video can then call self.send_vid_pic(vid_pic, message="") and therefore not break anyone's code

I do have an issue though, Not sure if it is just my Laptop or 102 of Chrome but:

  1. If I step through the code then all works fine (chrome shows a lot of lag)
  2. If you just run the code then nothing seems to be sent..

Please assist if you can - I thought of waiting until NOT present "Sending message" popup is not present, but I just cannot find how to do this...

euriconicacio commented 2 years ago

Hi, @theCJMan. Converting this into a draft while all of us investigate. Thanks a lot for the contribution!

Can you please be a little more specific on the difference between step through the code and run the code? Testing this into some hours.

theCJMan commented 2 years ago

Hey guys, sorry for the late reply

I am using PyCharm as UI for my development environment,

“Running” the code let the app run from start to end, no breakpoints

“Stepping through the code” allows me to execute one line of code at a time, inspect variables and step to the next line, or run up to a breakpoint then run the code line by line

my app loads an Excel file and loop through the file row by row.

It reads the First and last names, WhatsApp message to send, and attachment file to be send

If you need I can post my full app as well

Cornelius Mostert

B.Sc. (Computer Science), M. IT. (Knowledge Management)

WWW: https://corneliusmostert.com/ Me on the Web

WhatsApp: https://api.whatsapp.com/send?phone=27790995412&text= 079 099 5412

From: Eurico Nicacio @.> Sent: Saturday, 25 June 2022 08:37 To: Kalebu/alright @.> Cc: Cornelius Mostert @.>; Mention @.> Subject: Re: [Kalebu/alright] Update init.py (PR #73)

Hi, @theCJMan https://github.com/theCJMan . Converting this into a draft while all of us investigate. Thanks a lot for the contribution!

Can you please be a little more specific on the difference between step through the code and run the code? Testing this into some hours.

— Reply to this email directly, view it on GitHub https://github.com/Kalebu/alright/pull/73#issuecomment-1166204991 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJCPFSZIOSJHQYINQAWDFALVQ2SHXANCNFSM5ZYHLNNQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AJCPFS4X4WD5EKPDIX7GNT3VQ2SHXA5CNFSM5ZYHLNN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIWBOAPY.gif Message ID: @. @.> >