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(SmartAppDriver appDriver, String imageObject)RectanglegetRectangleOfImageObject(SmartAppDriver appDriver, int width, int height)RectanglegetRectangleOfImageObject(SmartAppDriver appDriver, String leftSideImageOfImageObject, String rightSideImageOfImageObject)org.sikuli.script.RegiongetRegion(SmartAppDriver appDriver)This is applicable only for WITHIN LIMIT object.org.sikuli.script.RegiongetRegionOfImageObject(SmartAppDriver appDriver, int width, int height)org.sikuli.script.RegiongetRegionOfImageObject(SmartAppDriver appDriver, String imageObject)org.sikuli.script.RegiongetRegionOfImageObject(SmartAppDriver appDriver, 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(SmartAppDriver appDriver, String leftSideImageOfImageObject, String rightSideImageOfImageObject) -
getRectangleOfImageObject
-
getImageObjectMatch
-
getRegion
This is applicable only for WITHIN LIMIT object.- Returns:
-
getRegionOfImageObject
public org.sikuli.script.Region getRegionOfImageObject(SmartAppDriver appDriver, String leftSideImageOfImageObject, String rightSideImageOfImageObject) -
getRegionOfImageObject
public org.sikuli.script.Region getRegionOfImageObject(SmartAppDriver appDriver, int width, int height) -
getRegionOfImageObject
public org.sikuli.script.Region getRegionOfImageObject(SmartAppDriver appDriver, String imageObject)
-