Tithibots / tithiwa

Automate Web WhatsApp with selenium in python.
MIT License
24 stars 22 forks source link

remove group admin function added and tested working #74

Closed pyvelkov closed 3 years ago

pyvelkov commented 3 years ago

I added a remove admin function. It is similar to Make admin. however you click on participants and click on make group admin whoever you passed to be admin. Gets selector and clicks it. It works on my end.

EDIT* This fixes #48

pyvelkov commented 3 years ago

Hello sorry, something happened while I was cleaning up the comments and I guess I removed the correct selector. it is fixed now.

NavpreetDevpuri commented 3 years ago

you are doing very well! 👏

NavpreetDevpuri commented 3 years ago

@pyvelkov I noticed now, some old CSS selector not working now I think Whatsapp changed CSS class names. So need to find better selectors. for example span[data-testid="default-user"] instead of following https://github.com/Tithibots/tithiwa/blob/feddb56cf43564b55b704024c383485d3cd308e9/tithiwa/constants.py#L59

https://github.com/Tithibots/tithiwa/blob/feddb56cf43564b55b704024c383485d3cd308e9/tithiwa/constants.py#L15