It returned the following DATA URI, which is empty. I also tried this in dev tools, document.querySelector('#canvas-xyz').toDataURL() It returned AttributeError: 'WebElement' object has no attribute 'save_screenshot' I tried using the below code, driver.find_element_by_css('#canvas-xyz').save_screenshot('canvas.png') I'm trying to take screenshot of a tag element from google chrome using selenium web driver and python.
0 Comments
Leave a Reply. |