| 程序包 | 说明 |
|---|---|
| org.openqa.selenium | |
| org.openqa.selenium.remote |
| 限定符和类型 | 方法和说明 |
|---|---|
Dimension |
Rectangle.getDimension() |
Dimension |
WebElement.getSize()
What is the width and height of the rendered element?
|
Dimension |
WebDriver.Window.getSize()
Get the size of the current window.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WebDriver.Window.setSize(Dimension targetSize)
Set the size of the current window.
|
| 构造器和说明 |
|---|
Rectangle(Point p,
Dimension d) |
| 限定符和类型 | 方法和说明 |
|---|---|
Dimension |
RemoteWebElement.getSize() |