

Here is an example: "C:\Program Files\Google\Chrome\Application\chrome.exe" -headless -screenshot="C:\Users\itechtics\Pictures\chrome-capture.jpg" "" You can accomplish this by using the following command (run in Command Prompt or Run dialog): "Chrome executable path" -headless -screenshot="Save image path" "URL of the website" You can use this to monitor a website’s user interface.Chrome must be running in headless mode in order to capture screenshots. In a script, you can use this command to take screenshots of a website at intervals of x seconds. With Chrome, you can take a screenshot of the website without even opening the browser.

"Chrome executable path" -make-default-browserįor example, "C:\Program Files\Google\Chrome\Application\chrome.exe" -make-chrome-default Take screenshots of the sites from command-line
:max_bytes(150000):strip_icc()/l4OqukbSeC-d2ab83cb28d943408a0d9088d72f4240-dc1e3c4e71604c31921ea3d8b2f5349b.jpg)
Some useful Chrome command-line switches Set Chrome as the default browser "Chrome executable path" -make-chrome-default Once you have saved this shortcut, the browser will open without installing any plugins. For example, "C:\Program Files\Google\Chrome\Application\chrome.exe" -disable-plugins Under the Shortcut tab, append the command-line switch at the end of the Target field. TIP: The default location for the Chrome Start Menu shortcut in Windows 10 is: C:\ProgramData\Microsoft\Windows\Start Menu\Programs To add the command-line switch to Chrome shortcut, right-click on the Chrome shortcut and select Properties. If you would like to add a switch permanently to Chrome, you can do so by adding it to the Chrome shortcut. If, for example, you wish to open Chrome without any plugins, you can run the following command: C:\Program Files\Google\Chrome\Application\chrome.exe -disable-plugins The easiest way to open Chrome with command-line switches is to run it from Command Prompt or Run Dialog.
