Share this page

com.hp.lft.sdk

## Interface LocationInfoProvider

- All Known Subinterfaces:
    Accordion, APOGrid, Applet, Area, AudioControl, Browser, Button, Button, Button, Button, Button, Button, Button, Calendar, Calendar, Calendar, Calendar, Calendar, Calendar, Carousel, CheckBox, CheckBox, CheckBox, CheckBox, CheckBox, CheckBox, CheckBox, ComboBox, ComboBox, ComboBox, ComboBox, DatePicker, DateTimeInput, Dialog, Dialog, Dialog, EditField, EditField, EditField, EditField, EditField, EditField, Editor, Editor, Editor, Editor, Element, ExpandBar, FacetFilter, FileField, Frame, Grid, Header, Image, Image, InsightObject, InternalFrame, Label, Label, Label, Label, Link, Link, Link, List, List, ListBox, ListBox, ListBox, ListBox, ListView, ListView, Menu, Menu, Menu, Menu, Menubar, Menubar, NavigationBar, NotificationBar, NumericField, OKCode, Paginator, Password, ProgressBar, PropertyGrid, RadioButton, RadioButton, RadioButton, RadioButton, RadioButton, RadioButton, RadioGroup, RadioGroup, RatingIndicator, RoadMap, RowRepeater, ScrollBar, ScrollBar, ScrollBar, Slider, Slider, Slider, SpinBox, SpinBox, SpinBox, Static, StatusBar, StatusBar, StatusBar, StatusBar, TabControl, TabControl, TabControl, TabControl, Table, Table, Table, Table, Table, Table, TableBase<T>, TabStrip, TabStrip, TabStrip, Tile, ToggleButton, ToolBar, ToolBar, ToolBar, ToolBar, ToolBar, ToolBar, TreeView, TreeView, TreeView, TreeView, TreeView, TreeView, TreeView, UiObject, UiObject, UiObject, UiObject, UiObjectBase, UiObjectBase, UiObjectBase, UiObjectBase, UiObjectBase, UiObjectWithLayoutInfo, VideoControl, WebElement, WebTestObject, Window, Window, Window, Window, Window

      public interface LocationInfoProvider

  Indicates that a test object supports accessing properties of its location on the screen.

- - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `java.awt.Point` | `getAbsoluteLocation()` Returns this object's absolute coordinates relative to the screen (in pixels).
    `java.awt.Point` | `getLocation()` Returns this object's coordinates relative to the parent window (in pixels).
    `java.awt.Dimension` | `getSize()` Returns this object's size (in pixels).

- - ### Method Detail

    - #### getLocation

          java.awt.Point getLocation()
                              throws GeneralLeanFtException

      Returns this object's coordinates relative to the parent window (in pixels).
      Returns:
        this object's coordinates relative to the parent window (in pixels).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getAbsoluteLocation

          java.awt.Point getAbsoluteLocation()
                                      throws GeneralLeanFtException

      Returns this object's absolute coordinates relative to the screen (in pixels).
      0,0 is the top-left corner of the (primary) monitor.
      Returns:
        this object's absolute coordinates relative to the screen (in pixels).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

    - #### getSize

          java.awt.Dimension getSize()
                              throws GeneralLeanFtException

      Returns this object's size (in pixels).
      Returns:
        this object's size (in pixels).
      Throws:
        `GeneralLeanFtException` - if an error occurs during execution.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: