-
Notifications
You must be signed in to change notification settings - Fork 22
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
clear_all_chats method was added in Tithiwa class #83
Conversation
We need to avoid using And we need to fix #84 Give it a try |
Ok sir |
Sir, I have removed time.sleep() and instead added try-except block inside a infinite while loop. The only way to break while loop is when the program successfully finds and clicks the desired element. I have tested the program and its working fine. |
We found new bug #89 |
Since whatsapp had two elements for menu with same class and Ids, I was forced to use full xpath instead of CSS selector for accessing the menu. Then using arrow keys the program navigates to "clear messages", and then uses ENTER key to clear chat.
Sometimes chat takes some time to load, and program returned error "element not found", to avoid that I tried using implicit wait - self.browser.implicitly_wait(3), but for some reason I still recieved error so atlast I used sleep(0.5).