How To Retrieve Data From The Popup After Clickable Element Trigger With Webdriverwait In Selenium Python?
I need to scrape the image src from this popup. I have coded that but getting 'AttributeError: 'NoneType' object has no attribute 'findElements'. Here is the code. from selenium im
Solution 1:
Try using all the available element identifiers if one doesn't work, it worked with css_selector
.
sizechart = driver.find_element_by_css_selector('#sizeImg > img').get_attribute("src")
print(sizechart)
#Output:
https://assets.macysassets.com/dyn_img/size_charts/4011861.gif
Post a Comment for "How To Retrieve Data From The Popup After Clickable Element Trigger With Webdriverwait In Selenium Python?"