I am using below batch command for taking screenshot- c:\\program files (x86)\\Google\\chrome.exe” —-headless —-screenshot=“D:\\test\\chrome.png” “https://examples.com”