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
I reload the browser window every time before injecting the prompt. This avoids error 500 after two hours.
def send_message(message):
# Send the message
# Refresh the page before sending the message
time.sleep(2)
PAGE.reload()
# Wait for 5 seconds - because of longer history
time.sleep(5)
# Send the message
box = get_input_box()
box.click()
Yes it changed, but I'm not able to figure the correct one out, so currently I reload "new chat", and I take
page_elements = PAGE.query_selector_all(".flex.flex-col.items-start > div")
instead, with last_element = page_elements[0] instead of -2.
The text was updated successfully, but these errors were encountered: