how to resize a window in javascript code example
Example 1: check window resize javascript
window.addEventListener("resize", () => {
// CODE
});
Example 2: how to resize window
To resize browser window
-I would create object of dimensions class
Dimension newD = new Dimension(480,620)
-Than I resize the current window to the given dimension
driver.manage().window().setSize(newD)