You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtithiwaimportTithiwatithiwabot=Tithiwa()
tithiwabot.open_session()
tithiwabot.create_group("Group made by tithiwa", ["Navpreet Devpuri"])
tithiwabot.create_group("Group made by tithiwa", ["Navpreet Devpuri"])
tithiwabot.create_group("Group made by tithiwa", ["Navpreet Devpuri"])
tithiwabot.exit_from_all_groups()
Then it fails to exit from the 2nd and 3rd group because
when we try to open the 2nd group after the 1st group it waits for the group to be opened before exiting it.
it waits for the group name to appear on the chatroom
But the 1st group already has the same group name
So it just doesn't wait for the 2nd group to be opened
it thinks like Yes we already exited that group and goes to the next one.
HINT: Save the previous group name HTML element in a new variable then use _wait_for_an_element_to_deattached() to wait for it to disappear then check for the next group name.
If we have the same name groups as follows.
Then it fails to exit from the 2nd and 3rd group because
Yes we already exited that group
and goes to the next one.that's how it is skipping the same name groups.
tithiwa/tithiwa/group.py
Line 127 in 654e4f4
tithiwa/tithiwa/group.py
Lines 161 to 164 in 654e4f4
tithiwa/tithiwa/waobject.py
Lines 109 to 118 in 654e4f4
The text was updated successfully, but these errors were encountered: