Package org.htmlunit.html
Interface ElementFromPointHandler
-
public interface ElementFromPointHandler
An interface to allow the user to specify which element to return for the javascriptdocument.elementFromPoint()
.This is needed since calculating the element location is outside the current scope of HtmlUnit.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HtmlElement
getElementFromPoint(HtmlPage htmlPage, int x, int y)
Returns the element for the specified x coordinate and the specified y coordinate.
-
-
-
Method Detail
-
getElementFromPoint
HtmlElement getElementFromPoint(HtmlPage htmlPage, int x, int y)
Returns the element for the specified x coordinate and the specified y coordinate. The current implementation always returns the <body> element.- Parameters:
htmlPage
- the pagex
- the x offset, in pixelsy
- the y offset, in pixels- Returns:
- the element for the specified x coordinate and the specified y coordinate
-
-