JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.htmlunit.html

Interface ElementFromPointHandler



  • public interface ElementFromPointHandler
    An interface to allow the user to specify which element to return for the javascript document.elementFromPoint().

    This is needed since calculating the element location is outside the current scope of HtmlUnit.

    Author:
    Ahmed Ashour
    • Method Summary

      All Methods
      Modifier and Type Method and 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 page
        x - the x offset, in pixels
        y - the y offset, in pixels
        Returns:
        the element for the specified x coordinate and the specified y coordinate
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /