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

Fix loading detection not working #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

replikvlt
Copy link

Loading detection as it was originally using querry_selector(.stop).is_enabled() didn't work on my machine, perhaps bing chat website was changed and that button doesnt have the enabled attribute. I tried to turn condition to is_visible(), but the button didnt have that attribute either. During debugging this I found that button appears on typing indicator "panel" (cib_typing_indicator), and it changes itself when typing response, adds cancelable attribute to its element. It is None when typing is not active (i.e before or after typing was completed) Seems to work more or less reliable on my machine. The time.sleep(7) in get_last_message() probably should be changed to some computed value as it may depend on CPU/Network speed, but it was a quick hack.

Loading detection as it was originally using querry_selector(.stop).is_enabled() didn't work on my machine, perhaps bing chat website was changed and that button doesnt have the enabled attribute.
I tried to turn condition to is_visible(), but the button didnt have that attribute either.
During debugging this I found that button appears on typing indicator "panel" (cib_typing_indicator), and it changes itself when typing response, adds cancelable attribute to its element.
It is None when typing is not active (i.e before or after typing was completed) 
Seems to work more or less reliable on my machine.
The time.sleep(7) in get_last_message() probably should be changed to some computed value as it may depend on CPU/Network speed, but it was a quick hack.
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.

1 participant