As per splinter docs to
Take a full view screenshot:
browser = Browser()
screenshot_path = browser.screenshot('absolute_path/your_screenshot.png', full=True)
I am using the same code but it throws
TypeError: screenshot() got an unexpected keyword argument 'full'
Here is the code -
from splinter import Browser
import time
with Browser('chrome') as browser:
url = "http://www.google.com"
browser.visit(url)
browser.fill('q', 'List of top IT firms')
button = browser.find_by_name('btnG')
button.click()
browser.screenshot('D:/sss/your_screenshot1.png', full=True)
time.sleep(3)
browser.execute_script("window.scrollTo(0, document.body.scrollHeight);")
browser.screenshot('D:/sss/your_screenshot2.png', full=True)
Please help me here.
Thanks in advance!