I am utilizing Sauce Labs to execute my automation script, which is built using Selenium and Java. One of the challenges I'm currently facing is finding a JavaScript method or keyboard shortcut to enable the 'Zoom text' function programmatically. Can you provide any guidance or suggestions? enter image description here
i tried following java-script.but that is doing page zoom not the text zoom "document.body.style.zoom = '1.5'"; // Zoom in
To increase from "medium" to "large" font size in Java, add these preferences in your options class:
The default ("Medium" is 13 & 16). You can set the font size in settings and navigate to this page to see the values change: chrome://prefs-internals/