|
|
|
|
|
by mcintyre1994
3021 days ago
|
|
If I'm understanding correctly, could you just select the body tag and screenshot that? In Selenium Python that'd be: # driver is a Firefox driver
body = driver.find_element_by_tag_name('body')
screenshot = body.screenshot_as_base64 # png bytes
|
|
- a lot of (visible) elements are missing
- the screenshot is still cropped to whatever viewport is used