title: AttributeError: "'Service' object has no attribute 'process'" whit Selenium and Scrapy
body: <p>I'm trying to understand how to scrape website pages with java content. I'm stuck with selenium and I think I've some problem in understanding the mechanism.
  I've got this script:</p>
  
  <pre><code>import scrapy
  from selenium import webdriver
  from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
  
  class britaudioSpider(scrapy.Spider):
      name = "britaudio"
      allowed_domains = ["http://www.example.com"]
      start_urls = ["www.example.com/archive-project"]
  
      def __init__(self):
          caps = DesiredCapabilities.FIREFOX
          caps["marionette"] = True
          caps["binary"] = "/usr/bin/firefox"
  
          driver = webdriver.Firefox(capabilities=caps)
  
      def parse(self, response):
          self.driver.get(response.url)
          el1 = self.driver.find_element_by_xpath('//ul[@class="level1"]/li[@class]/href')
          el1.click()
          el2 = self.driver.find_element_by_xpath('//id[@class="subNavContainer loaded"/ul[@class="level2"]/li[@class]/href')
          el2.click()
          el3 = self.driver.find_element_by_xpath('//id[@class="subNavContainer loaded"/ul[@class="level3"]/li[@class="track"]/href')
          print el3
  </code></pre>
  
  <p>This gives me this error: </p>
  
  <pre><code>  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 62, in start
      stdout=self.log_file, stderr=self.log_file)
    File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
      errread, errwrite)
    File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
      raise child_exception
  exceptions.OSError: [Errno 20] Not a directory
  Exception AttributeError: "'Service' object has no attribute 'process'" in &lt;bound method Service.__del__ of &lt;selenium.webdriver.firefox.service.Service object at 0x7f050dd751d0&gt;&gt; ignored
  </code></pre>
  
  <p>I actually don't understand how web.driver works. Somebody can help?</p>
  
  <p>I've already seen this question: <a href="https://stackoverflow.com/questions/37004635/python-selenium-exception-attributeerror-service-object-has-no-attribute-pr">Python Selenium Exception AttributeError: &quot;&#39;Service&#39; object has no attribute &#39;process&#39;&quot; in selenium.webdriver.ie.service.Service</a>, but it doesn't seem it can be applied to my case.</p>