Class PointedCoordinates

java.lang.Object
com.workfusion.rpa.helpers.PointedCoordinates
All Implemented Interfaces:
org.openqa.selenium.interactions.Coordinates

public class PointedCoordinates extends Object implements org.openqa.selenium.interactions.Coordinates
Aggregates object coordinates and provides coordinates of an element for advanced interactions. Implements the Coordinates class.
  • Constructor Details

    • PointedCoordinates

      public PointedCoordinates(int x, int y)
      Creates a PointedCoordinates object from given coordinates
      Parameters:
      x - coordinate
      y - coordinate
    • PointedCoordinates

      public PointedCoordinates(org.openqa.selenium.Point point)
      Creates a PointedCoordinates object from a given Point object
      Parameters:
      point - Point object
  • Method Details

    • onScreen

      public org.openqa.selenium.Point onScreen()
      Specified by:
      onScreen in interface org.openqa.selenium.interactions.Coordinates
      See Also:
      • Coordinates.onScreen()
    • inViewPort

      public org.openqa.selenium.Point inViewPort()
      Specified by:
      inViewPort in interface org.openqa.selenium.interactions.Coordinates
      See Also:
      • Coordinates.inViewPort()
    • onPage

      public org.openqa.selenium.Point onPage()
      Specified by:
      onPage in interface org.openqa.selenium.interactions.Coordinates
      See Also:
      • Coordinates.onPage()
    • getAuxiliary

      public Object getAuxiliary()
      Specified by:
      getAuxiliary in interface org.openqa.selenium.interactions.Coordinates
      See Also:
      • Coordinates.getAuxiliary()
    • toJson

      public String toJson()
      Converts PointedCoordinates object to JSON string
    • fromJson

      public static PointedCoordinates fromJson(String json)
      Converts JSON string to PointedCoordinates object
    • getElementPositionCenter

      public static org.openqa.selenium.Point getElementPositionCenter(org.openqa.selenium.WebElement control)
      Returns coordinates of the UiElement central point
      Parameters:
      control - UiElement
      Returns:
      central point coordinates
    • toString

      public String toString()
      Converts PointedCoordinates object to String
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object