Class ObjectLocation
java.lang.Object
org.uitnet.testing.smartfwk.ui.core.objects.ObjectLocation
public class ObjectLocation extends Object
- Author:
- Madhav Krishna
-
Constructor Summary
Constructors Constructor Description ObjectLocation()ObjectLocation(int x, int y, int width, int height)Object is within this limit.ObjectLocation(Rectangle area)Object is within this area.ObjectLocation(UIObject refObject, ReferenceObjectPosition refObjectPosition, int refObjDistanceInPx)Object is nearby reference object. -
Method Summary
Modifier and Type Method Description RectanglegetImageObjectMatch(WebBrowser browser, String imageObject)RectanglegetRectangleOfImageObject(WebBrowser browser, int width, int height)RectanglegetRectangleOfImageObject(WebBrowser browser, String leftSideImageOfImageObject, String rightSideImageOfImageObject)org.sikuli.script.RegiongetRegion(WebBrowser browser)This is applicable only for WITHIN LIMIT object.org.sikuli.script.RegiongetRegionOfImageObject(WebBrowser browser, int width, int height)org.sikuli.script.RegiongetRegionOfImageObject(WebBrowser browser, String imageObject)org.sikuli.script.RegiongetRegionOfImageObject(WebBrowser browser, String leftSideImageOfImageObject, String rightSideImageOfImageObject)ObjectLocationsetLeftMarginOfRefObject(int leftMarginOfRefObjectInPx)Left Margin of the ref object is applicable if ReferenceObjectPosition is TOP or Bottom.
-
Constructor Details
-
ObjectLocation
public ObjectLocation() -
ObjectLocation
public ObjectLocation(int x, int y, int width, int height)Object is within this limit.- Parameters:
x-y-width-height-
-
ObjectLocation
Object is within this area.- Parameters:
area-
-
ObjectLocation
public ObjectLocation(UIObject refObject, ReferenceObjectPosition refObjectPosition, int refObjDistanceInPx)Object is nearby reference object.- Parameters:
refObject-refObjectPosition-refObjDistanceInPx- approximate distance of ref object from actual object to determine object area where it can be found.
-
-
Method Details
-
setLeftMarginOfRefObject
Left Margin of the ref object is applicable if ReferenceObjectPosition is TOP or Bottom. It is used to determine the object distance from left side refObject.- Parameters:
leftMarginOfRefObjectInPx-- Returns:
-
getRectangleOfImageObject
public Rectangle getRectangleOfImageObject(WebBrowser browser, String leftSideImageOfImageObject, String rightSideImageOfImageObject) -
getRectangleOfImageObject
-
getImageObjectMatch
-
getRegion
This is applicable only for WITHIN LIMIT object.- Returns:
-
getRegionOfImageObject
public org.sikuli.script.Region getRegionOfImageObject(WebBrowser browser, String leftSideImageOfImageObject, String rightSideImageOfImageObject) -
getRegionOfImageObject
-
getRegionOfImageObject
-