📜  如何调整浏览器大小 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:42.750000             🧑  作者: Mango

代码示例1
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)