I had error while try create custom profile on Linux in selenium
“selenium.common.exceptions.WebDriverException: Message: unknown error: cannot create default profile directory”
I have write permissions in this directory, I checked
here is my code
<code>profile_path = "/home/David/test"
options.add_argument(f"user-data-dir=/home/David/test")
driver = webdriver.Remote(options=options)
</code>
<code>profile_path = "/home/David/test"
options.add_argument(f"user-data-dir=/home/David/test")
driver = webdriver.Remote(options=options)
</code>
profile_path = "/home/David/test"
options.add_argument(f"user-data-dir=/home/David/test")
driver = webdriver.Remote(options=options)
I need the script works properly
New contributor
Maksym Ustymenko is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.