i use the command
browser.get_screenshot_as_file('google2.png')
to take pictures of my headless chrome in ubuntu server. But the pictures are from the hole page without including the console with the errors. Problem is i am trying to connect linkedin using webscraping knowledge, but it is giving me an error. So i want to see if this error appears in the console, in order to solve it.