title: How to take screenshot of element using python3 and selenium
body: <p>I want to take screenshot of the element.
  I tried with below mentioned code:</p>
  
  <pre><code>ElementIs=driver.find_element_by_xpath(".//body/img")
  ElementIs.screenshot('abc.jpg')
  </code></pre>
  
  <p>but got error:</p>
  
  <pre><code>File "C:\Python34\lib\site-packages\selenium-2.47.1-y3.4.egg\selenium\webdriver\remote\webelement.py", line 448, in _execute   return self._parent.execute(command, params)
  File "C:\Python34\lib\site-packages\selenium-2.47.1-y3.4.egg\selenium\webdriver\remote\webdriver.py", line 196, in execute self.error_handler.check_response(response)
  File "C:\Python34\lib\site-packages\selenium-2.47.1-py3.4.egg\selenium\webdriver\remote\errorhandler.py", line 102, in check_responsevalue = json.loads(value_json)
  File "C:\Python34\lib\json\__init__.py", line 318, in loads   return _default_decoder.decode(s)
  File "C:\Python34\lib\json\decoder.py", line 343, in decode   obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python34\lib\json\decoder.py", line 361, in raw_decode raise ValueError(errmsg("Expecting value", s, err.value)) from None ValueError: Expecting value: line 1 column 1 (char 0)
  </code></pre>