No code runs after Chrome Driver is successfuly started

50 views
Skip to first unread message

Corrado Petruzzelli

unread,
Oct 21, 2023, 3:34:13 AM10/21/23
to Selenium Users
I am trying to set up a chrome driver signed in with a profile because I was hoping to bypass 2FA on certain websites but when I run the program I get no errors and the first selenium command will not execute. Anything after WebDriver driver = new ChromeDriver(options); doesn't run.

To set it up i did the following;

  1. Open cmd
  2. cd C:\Program Files\Google\Chrome\Application
  3. chrome.exe --remote-debugging-port=9222 --user-data-dir="[Created a folder in the project named ChromeProfile]"
Code (In photo format just because its relatively simple)
ex.png
Reply all
Reply to author
Forward
0 new messages