I want to get the following scr url.
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from datetime import date
import openpyxl
import time
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
img_class = 'thumbnail_thumb_wrap__1pEkS _wrapper' #div
img_xpath = '/html/body/div/div/div[2]/div[2]/div[3]/div[1]/ul/div/div[1]/li/div/div[1]/div/a/img'
img_css = '.thumbnail_thumb_wrap__1pEkS .thumbnail_thumb__3Agq6:before'
item_img = driver.find_elements(By.XPATH, img_xpath).__getattribute__('src')
print(item_img)
I searched by Xpath, css_select, and class_name, but I see an error message that none of them have 'src'. What am I missing here?
