Error trying to create a browser with selenium in python3
<p>I am trying to use <code>selenium</code> in <code>python3</code> to force the execution of a <code>javascript</code> and get back / parse the rendered <code>html</code> with <code>BeautifulSoup</code> afterwards. Unfortunately I get stopped very quickly when trying to use <code>selenium</code>. I do :</p>

<pre><code>&gt;&gt;&gt; import platform
&gt;&gt;&gt; from selenium import webdriver
&gt;&gt;&gt; browser = webdriver.Safari()
</code></pre>

<p>But then get the following error :</p>

<pre><code>Traceback (most recent call last):
  File "&lt;pyshell#2&gt;", line 1, in &lt;module&gt;
    browser = webdriver.Safari()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/safari/webdriver.py", line 48, in __init__
self.service.start()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 86, in start
    self.assert_process_still_running()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/selenium/webdriver/common/service.py", line 99, in assert_process_still_running
% (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/safaridriver unexpectedly exited. Status code was: 1
</code></pre>

<p>Do you have any clue what I do wrong?</p>