Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create clear_chats_of_all_contacts() in Chatroom class to clear all chats of all contants from web whatsapp #24

Closed
NavpreetDevpuri opened this issue Oct 12, 2020 · 4 comments · Fixed by #83
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed python Selenium Automation

Comments

@NavpreetDevpuri
Copy link
Member

Automate as follow or try something else

  1. go through all chats by using the DOWN arrow key because in HTML all chats are un-ordered
  2. determine someway that the currently active element on the browser is a contact i.e, not a group. browser.switch_to.active_element
  3. then if its a contact then just automate clear chat for that contact
@NavpreetDevpuri NavpreetDevpuri changed the title Craete clear_chats_of_all_contacts() in Chatroom class to clear all chats of all contants from web whatsapp Create clear_chats_of_all_contacts() in Chatroom class to clear all chats of all contants from web whatsapp Oct 12, 2020
@NavpreetDevpuri
Copy link
Member Author

NavpreetDevpuri commented Oct 17, 2020

def exit_from_all_groups(self):

That's how we can go through all chats

@NavpreetDevpuri NavpreetDevpuri moved this from Done to To do in Automate essentials Oct 18, 2020
@NavpreetDevpuri NavpreetDevpuri added the good first issue Good for newcomers label Oct 21, 2020
@NavpreetDevpuri
Copy link
Member Author

ShareX_bge3iVVLh8

@NavpreetDevpuri
Copy link
Member Author

  1. go through all group chats same as in exit_from_all_groups()
  2. open group options using CHATROOM__OPTIONS
  3. press on Clear chat and wait for the chat to be cleared by using self._close_info()

@NavpreetDevpuri
Copy link
Member Author

by using CONTACTS__NAME_IN_CHATS you can get all chats of contacts.

@NavpreetDevpuri NavpreetDevpuri self-assigned this Oct 31, 2021
@NavpreetDevpuri NavpreetDevpuri linked a pull request Oct 31, 2021 that will close this issue
Automate essentials automation moved this from To do to Done Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest help wanted Extra attention is needed python Selenium Automation
Projects
Development

Successfully merging a pull request may close this issue.

1 participant