Does this work reliably? Don't ChatGPT, Gemini, etc. change up their DOMs frequently and use bot detection to prevent this exact use case?
I've been using this personally for nearly a year and in that time they've only updated their UI a handful of times, minor changes I was able to fix within a day.
For bot detection evasion, it uses undetected-chromedriver which handles that pretty well. It also saves the browser session and cookies for future use.
I've also added few more tricks to avoid bot detection.