Getting selenium to launch safari with default profile in python : <p>I'm trying to launch Safari with Selenium in python with all my sessions logged in (e.g. gmail) so I don't have to login manually.</p>

<p>The easy solution would be to launch safari with the default user profile, but I can't find documentation on how to do this.</p>

<pre><code>from selenium import webdriver
driver = webdriver.Safari()
url = 'https://www.gmail.com/'
driver.get(url)
</code></pre>

<p>Just for reference, the code below is the code for Chrome. What is the safari equivalent?</p>

<pre><code>options.add_argument("user-data-dir=/Users/alexiseggermont/Library/Application Support/Google/Chrome/Default/") #Path to your chrome profile
driver = webdriver.Chrome(chrome_options=options)
driver.get(url)
</code></pre>
