eracuni/browser.py
def screenshot_full_page(browser: webdriver, file: str) -> None:
    """
    Take screenshot of full page and save as file
    Works ONLY in headless mode
    """
    # TODO fix height size
    def size(x):
        return browser.execute_script('return document.body.parentNode.scroll' + x)
    browser.set_window_size(size('Width'), size('Height'))  # May need manual adjustment
    # browser.find_element_by_tag_name('body').screenshot(file)
    browser.save_screenshot(file)

    Take screenshot of full page and save as file
    Works ONLY in headless mode
    
Take screenshot of full page and save as file
Works ONLY in headless mode
Take screenshot of full page and save as file Works ONLY in headless mode
def screenshot_full_page(browser: webdriver, file: str) -> None:
    def size(x):
        return browser.execute_script('return document.body.parentNode.scroll' + x)
    browser.set_window_size(size('Width'), size('Height'))  
    browser.save_screenshot(file)
def screenshot_full_page ( browser : webdriver , file : str ) -> None : def size ( x ) : return browser . execute_script ( 'return document.body.parentNode.scroll' + x ) browser . set_window_size ( size ( 'Width' ) , size ( 'Height' ) ) browser . save_screenshot ( file )
Take screenshot of full page and save as file
Works ONLY in headless mode
Take screenshot of full page and save as file Works ONLY in headless mode
"""
    Take screenshot of full page and save as file
    Works ONLY in headless mode
    """ # TODO fix height size # May need manual adjustment # browser.find_element_by_tag_name('body').screenshot(file)
browser
webdriver
file
str