Selenium question

Posted by RedditUsrnamesRweird@reddit | learnprogramming | View on Reddit | 5 comments

I'm trying to setup my own basic automations using Selenium in Chrome.
I've been working with claude on this for my knoweldge gaps but we're hitting walls so I'm hoping the pro's may be able to help out or tell me what i'm trying to do is even possible (because AI won't tell you that you can't always be anything you want to be..)

At this point i'm just trying to run script 1 (open chrome, login) then run script 2 (click once). When script two starts , the chrome window closes, so nothing happens obviously.

Claude thinks webdriver.Chrome() connection via debuggerAddress is the solution but i keep getting the chrome window closing as my result.

I'm wondering if there's an industry standard for this and i'm trying to break the mold in a way that doesn't work. I've done some work with appium before and our senior devs setup everything so that our scripts logged in every single time regardless of how in-depth our test was.

All help is welcome thank you !

( This post is not in any way AI generated )