Skip to content Skip to sidebar Skip to footer

Why I Use Selenium To Copy The Xpath But Get Nothing?

Here is my code I want to download the image search result of the Google. This is a link of Google image search For example I want to get the first result of it. I use the code b

Solution 1:

Try using below xpath. I tried inspecting the element and found xpath different than yours

img_urllist = driver.find_elements_by_xpath("//*[@id='irc_cc']/div[2]/div[1]/div[2]/div[3]/a/img")

Post a Comment for "Why I Use Selenium To Copy The Xpath But Get Nothing?"