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

Fixed the not interactable issue and did a bit of refactoring to the code #71

Merged
merged 1 commit into from
Jun 19, 2022

Conversation

Kalebu
Copy link
Owner

@Kalebu Kalebu commented Jun 19, 2022

I did upgrade the chrome to the latest version and I was still encountering the error element not interactable at the same time I came to realize the method check_if_given_chat_has_unread_messages was not working for me and so I tried to give a deeper look and did a bit of refactoring to the code to make both methods work.

>>> from alright import WhatsApp
>>> messenger = WhatsApp()


====== WebDriver manager ======
Current google-chrome version is 102.0.5005
Get LATEST driver version for 102.0.5005
Driver [/home/kalebu/.wdm/drivers/chromedriver/linux64/102.0.5005.61/chromedriver] found in cache
>>> unread_chats  = messenger.fetch_all_unread_chats(top=100)
2022-06-19 15:16:48,852 - root -- [INFO] >> The counter value at this chunk is: 17.
2022-06-19 15:16:49,598 - root -- [INFO] >> The counter value at this chunk is: 23.
2022-06-19 15:16:50,352 - root -- [INFO] >> The counter value at this chunk is: 36.
2022-06-19 15:16:51,080 - root -- [INFO] >> The counter value at this chunk is: 49.
2022-06-19 15:16:51,829 - root -- [INFO] >> The counter value at this chunk is: 61.
2022-06-19 15:16:52,528 - root -- [INFO] >> The counter value at this chunk is: 74.
2022-06-19 15:16:53,254 - root -- [INFO] >> The counter value at this chunk is: 86.
2022-06-19 15:16:53,986 - root -- [INFO] >> The counter value at this chunk is: 98.
2022-06-19 15:16:54,774 - root -- [INFO] >> The list of unread chats, considering the first 112 messages, is: ['Prosper Shoket - Pay', 'Adanian Tz Community', 'BlockChain Devs TZ', 'godblessminja', 'UDOM AI COMMUNITY', 'BUNI COMMUNITY'].

Please have deeper look to see if this only runs on my machine or It really does solve the issue

Thanks, Kalebu @euriconicacio

@euriconicacio euriconicacio merged commit 4c549bd into main Jun 19, 2022
ariel-s2g pushed a commit to ariel-s2g/alright that referenced this pull request Jun 27, 2022
Fixed the not interactable issue and did a bit of refactoring to the code
@euriconicacio euriconicacio deleted the develop-refactored-code branch July 10, 2022 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants