| 程序包 | 说明 |
|---|---|
| org.openqa.selenium | |
| org.openqa.selenium.interactions.internal | |
| org.openqa.selenium.remote |
| 限定符和类型 | 方法和说明 |
|---|---|
Point |
WebElement.getLocation()
Where on the page is the top left-hand corner of the rendered element?
|
Point |
Rectangle.getPoint() |
Point |
WebDriver.Window.getPosition()
Get the position of the current window, relative to the upper left corner of the screen.
|
Point |
Point.moveBy(int xOffset,
int yOffset) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WebDriver.Window.setPosition(Point targetPosition)
Set the position of the current window.
|
| 构造器和说明 |
|---|
Rectangle(Point p,
Dimension d) |
| 限定符和类型 | 方法和说明 |
|---|---|
Point |
Coordinates.inViewPort()
Gets coordinates on the element relative to the top-left corner of OS-window being used
to display the content.
|
Point |
Coordinates.onPage()
Gets coordinates on the element relative to the top-left corner of the page.
|
Point |
Coordinates.onScreen()
Gets coordinates on the element relative to the top-left corner of the monitor (screen).
|
| 限定符和类型 | 方法和说明 |
|---|---|
Point |
RemoteWebElement.getLocation() |