📜  如何更改窗口的大小 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:26.835000             🧑  作者: 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)