Skip to content

Unable to execute the test cases on specific chrome profile using the user-data-dir argument. #1893

Closed Answered by mdmintz
azfarbkhr asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @azfarbkhr, there are a few issues with using your standard Chrome's User Data dir as the same one for Selenium:

  1. Permissions issues because your regular Chrome browser is already using it as you try to connect Selenium's Chrome to it.
  2. Configuration issues because the configuration that Selenium needs is not the same as regular Chrome configuration.
  3. Security issues because if Selenium's Chrome accessed that, it would be able to see the data from your regular Chrome.

The solution is to use a separate folder for your user_data_dir... one that is created by Selenium so that it's not the same as the user_data_dir used by your system's default Chrome browser. Set --user-data-dir to a br…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mdmintz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants