So for below is my program,. my intention is to open the webpage and take screenshot of it. Any help or suggestions will be appreciated.
import webbrowser
import pyautogui, time
url = input()
# input 'https://stackoverflow.com/'
chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s'
webbrowser.get(chrome_path).open(url)
time.sleep(10)
screenshot = pyautogui.screenshot()
screenshot.save("anothertest.png")