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

[BUG]: Selenium fails to use existing Chrome user profile for automated browser session #1024

Open
doncorleon73 opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@doncorleon73
Copy link

Describe the bug

When using Selenium with ChromeDriver to automate navigation on LinkedIn, we are experiencing difficulties using the existing Chrome user profile.

Steps to reproduce

Current Behavior

  • When initializing the browser with Selenium, a new Chrome window opens
  • This new window is not logged into the LinkedIn account
  • The existing user profile is not loaded correctly

Environment

  • Operating System: Windows 11
  • Chrome Version: 131.0.6778.205
  • ChromeDriver Version: 131.0.6778.204
  • Selenium Version: 4.9.1
  • Python Version: 3.12.3

Steps to Reproduce

  1. Use Selenium to initialize a new Chrome browser
  2. Attempt to use the existing Chrome user profile
  3. Observe the opening of a new, unconnected browser window

Expected behavior

When initializing the browser with Selenium, the script should open an existing Chrome browser session The browser should use the default Chrome profile located at C:\Users\XXXX\AppData\Local\Google\Chrome\User Data The LinkedIn session should be already logged in, using the existing authenticated browser profile The browser should navigate directly to the specified URL (LinkedIn jobs page) using the existing session

Actual behavior

Selenium opens a brand new Chrome browser window The new browser window is not logged into LinkedIn The existing Chrome profile is not used A separate, unauthenticated browser session is created The script fails to leverage the existing browser session and authentication

Branch

None

Branch name

No response

Python version

3.12.3

LLM Used

Claude

Model used

claude-3-opus-20240229

Additional context

No response

@doncorleon73 doncorleon73 added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant