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

Selenium remote web access, selection problem when ChatGPT Cookie #102

Closed
5 of 14 tasks
3girls1cup opened this issue May 11, 2023 · 3 comments
Closed
5 of 14 tasks

Comments

@3girls1cup
Copy link

3girls1cup commented May 11, 2023

⚠️INSTRUCTIONS: Can't run any of the models with ChatGPT Cookie
  • Enter ONE "x" inside the brackets [x] to choose the answer
  • Example
  • Example2

Have you already searched for your ISSUE among the resolved ones?

  • Yes, new issue
  • Yes, but the solution not work for me
  • No

What version of Python do you have?

  • Last, Python > 3.11
  • Python = 3.10

What version of operating system do you have?

  • Windows
  • Linux/Ububtu
  • Mac/OSX

What type of installation did you perform?

  • pip3 install -r requirements.txt
  • python3 -m pip install -r requirements.txt
  • Anaconda
  • Container on VS

Desktop (please complete the following information):

  • Browser [e.g. chrome] : Brave
  • Version [e.g. 112] : Version 1.51.110 Chromium: 113.0.5672.77 (Build officiel) (64 bits) (doesn't it use an independant chromium browser ?)

Describe the bug
First of all, thanky for the great work you are doing here, much appreciated !

Here is the error I keep getting, seems like the selenium can't click on the right element... Did I do something wrong ? Followed all the instructions, the entered cookie is the right one. Tried to leave one window open connected to chat.openai.com (I'm only using the ChatGPT version), then closed, tried to use BabyAGI, AUTOGPT, none of the solution worked. What would be the problem, the container, the cookie ? Worth mentionning that I apparently have Python 3.10, could this be it ?

I'm lost... If someone could help me, would be great ! Thank you for your time and hope I don't bother with silly a silly problem...

Traceback (most recent call last):
File "/workspace/FreeAutoGPT/FreeLLM/pyChatGPT.py", line 449, in send_message
textbox.click()
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 94, in click
self._execute(Command.CLICK_ELEMENT)
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webelement.py", line 403, in _execute
return self._parent.execute(command, params)
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/webdriver.py", line 440, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.10/site-packages/selenium/webdriver/remote/errorhandler.py", line 245, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.ElementClickInterceptedException: Message: element click intercepted: Element <textarea tabindex="0" data-id="root" rows="1" placeholder="Send a message." class="m-0 w-full resize-none border-0 bg-transparent p-0 pr-7 focus:ring-0 focus-visible:ring-0 dark:bg-transparent pl-2 md:pl-0" style="max-height: 200px; height: 24px; overflow-y: hidden;"></textarea> is not clickable at point (1098, 931). Other element would receive the click:

...

(Session info: chrome=113.0.5672.63)

@3girls1cup
Copy link
Author

Sorry, I didn't see that closed issue #50 was about the same issue, nontheless, you answered it saying the repo was updated to fix the problem. Should I try the solution you provided there ?

@IntelligenzaArtificiale
Copy link
Owner

IntelligenzaArtificiale commented May 11, 2023

@3girls1cup Thank you very much for using our ISSUE template.

Today we updated the file https://github.com/IntelligenzaArtificiale/Free-Auto-GPT/blob/main/FreeLLM/pyChatGPT.py , so first make sure you have the latest update.

If you have the latest update, follow these steps:

For example, it could happen that OpenAI has changed the html page and therefore the welcome messages are not closed correctly.

If you can share with us the video of what happens, it would help us a lot to understand your problem

@3girls1cup
Copy link
Author

Thanks for the reply, updated the repo and started working :)

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

No branches or pull requests

2 participants