title: How can I get HTML code of a WebElement or an attribute of a WebElement?
body: <p>What I get so far:</p>
  
  <pre><code> def picture(self):
      path = "/home/user/Desktop/cat.jpg"
      path2 = "/home/user/Desktop/puppy.jpg"
      pictureName  = self.driver.find_element_by_xpath('//*[@id="easSettingAvatar"]')
      self.captureScreen('picture', 1)
      editPhoto.send_keys(path)
      time.sleep(5)
      print(pictureName)
      self.captureScreen('picture', 2)
      editPhoto.send_keys(path2)
      time.sleep(5)
      print(pictureName)
  </code></pre>
  
  <p>So basically, when I select CSS or Xpath of the element which contains src, it prints completely different information like: </p>
  
  <pre><code>&lt;selenium.webdriver.firefox.webelement.FirefoxWebElement (session="bba710d8-ac5e-4e96-b946-14b3eda53cca", element="6d243513-8109-495e-a7a4-e4d218bbbd9a")&gt;
  </code></pre>
  
  <p></p>