Currently, I am working with protractor and facing the challenge of zooming out to 50%. Despite trying numerous solutions found on StackOverflow, none have successfully resolved the issue. Some attempted solutions include:
browser.actions().keyDown(protractor.Key.COMMAND).sendKeys(protractor.Key.SUBTRACT).keyUp(protractor.Key.CONTROL).perform();
browser.executeScript("document.body.style.zoom='50%'");
browser.executeScript("document.body.style.zoom='0.5'");
Oddly enough, the .keyDown function in the first solution is being recognized as an unresolved function, although other parts of the code that produce the same error seem to work appropriately. Any alternative suggestions or ideas would be greatly appreciated.