Home > Software design >  Need screenshot from URL using chromedriver and selenium
Need screenshot from URL using chromedriver and selenium

Time:03-01

I am able to take screenshot of Website, but I need to take screenshot from URL like we do using snipping tool, but based on screen_size , pixel or want to do some scroll up and scroll down operation to get other images. Please suggest me a way to get picture from below URL

enter image description here

CodePudding user response:

I am using xpath to get particular division of class.

driver.find_element_by_xpath('/html/body/div/div[1]/section[2]/div[1]/div/div[2]').screenshot('/tmp/daily_job_status.png')
  • Related