What I get so far:
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)
So basically, when I select CSS or Xpath of the element which contains src, it prints completely different information like:
<selenium.webdriver.firefox.webelement.FirefoxWebElement (session="bba710d8-ac5e-4e96-b946-14b3eda53cca", element="6d243513-8109-495e-a7a4-e4d218bbbd9a")>