I want to download an image from Instagram but I'm unable to click (using code) on the download button of this page
I tried to click using XPath and CSS selector but it doesn't work.
pyautogui.locateOnScreen('image.PNG')
does not work most of the times.
elem=driver.find_element_by_xpath
elem('/html/body/div[1]/div[3]/div/div/div[1]/div/div[2]/a').click
driver.find_element_by_css_selector('body > div.page-wrapper > div:nth-child(5) > div > div > div.col-md-3 > div > div.button_div > a').click()
NoSuchElementException
If there's any better way of performing this task please do let me know.