I am working on a project where the application is deployed on a kiosk machine after development and QA. Since i have to test it on my local machine, the default size (i.e.100%) of the application in the browser moves out of the window without any scroll bars, hence it becomes difficult to trace the element. Therefore, i am reducing the size from 100% to 50% through script.
browser.get("url");
browser.driver.executeScript("document.body.style.zoom='50%'");
browser.findElement(by.xpath("WebElement")).click();
Error: Failed: unknown error: Element