Python, error with web driver (Selenium)
<pre><code>    import time
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys

driver = webdriver.Chrome()
driver.get('http://arithmetic.zetamac.com/game?key=a7220a92')
element = driver.find_element_by_link_text('problem')
print(element)
</code></pre>

<p>I am getting the error:</p>

<pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
</code></pre>

<p>I am not sure whythis is happening, because I imported selenium already. </p>

<p>Either you provide the ChromeDriver path in webdriver.Chrome or provide the path variable</p>

<pre><code>from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
driverLocation = 'D:\Drivers\chromedriver.exe' #if windows
driver = webdriver.Chrome(driverLocation) 
driver.get('http://arithmetic.zetamac.com/game?key=a7220a92')
element = driver.find_element_by_link_text('problem')
print(element)
</code></pre>

python selenium