Flag to boot chrome with a default zoom


For some tests in UFT I need to start the chrome scanner maximized but with a certain zoom. To start maximized I have seen that you have to add the flag -start-maximized , but I have not found a flag to start with the zoom of 70%.

C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Profile 3" -start-maximized 
asked by user942324 22.11.2016 в 12:40

3 answers


I do not know if there is an easier way but what I can think of is that you install in chrome the extension Tampermonkey and create a custom script that looks like this:

// ==UserScript==
// @name        Zoom predeterminado

// @description Pone un zoom personalizado a las paginas del include
// @include     https://www.google.es/*
// @include     http://es.stackoverflow.com/*

// @version     1.1
// @grant       
// ==/UserScript==

document.body.style.zoom = "70%";

You can put as many lines of @include as you want to specify the pages where you will act. If you want me to act in all pon @include *://*/*

And below, set the% zoom% you need.

answered by 22.11.2016 в 12:48

If you configure it in the browser by clicking on "Customize and control Google Chrome" - > Configuration, then click on "Show advanced configuration ..." and look for the part that says "Web Content", there you can change the zoom.

answered by 23.11.2016 в 21:42

If you add the parameter --force-device-scale-factor=1.5 appears scaled to 1.5 Here you have a list with all the parameters that you can send: link

answered by 30.10.2018 в 11:11