public class ToggleTestObject extends GuiTestObject implements IToggle
TestObject implementation of the IToggle interface.ToggleGUITestObject}ignoreTheObjectState, ref| Constructor and Description |
|---|
ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
For internal use.
|
ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor)
For internal use.
|
ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
For internal use.
|
ToggleTestObject(TestObject obj)
Constructs one
ToggleTestObject from another TestObject. |
ToggleTestObject(com.rational.test.ft.object.TestObjectReference ref)
For internal use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deselect()
To de-select the associated object
|
State |
getState()
Returns the state of the associated object.
|
void |
indeterminate()
To change the state of the associated object to INDETERMINATE.
|
void |
select()
To select the associated object
|
void |
setState(State state)
Sets the state of the associated object.
|
canTakeVP, click, click, click, click, clickRadio, doubleClick, doubleClick, doubleClick, doubleClick, drag, drag, drag, drag, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getChildAtPoint, getClippedScreenRectangle, getImage, getImage, getIWindow, getRole, getScreenPoint, getScreenPoint, getScreenRectangle, getScreenSnapshot, getVisibleArea, hasFocus, hover, hover, hover, hover, invokeProxyWithGuiDelay, invokeProxyWithGuiDelay, isEnabled, isOpaque, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClickDrag, nClickDragToScreenPoint, switchToexists, exists, exists, find, find, findAndInvoke, findAndInvokeProxy, getProperty, getTestDataTypes, invoke, invokeProxy, unregister, waitForExistencecompare, compare, compareAndLog, compareAndLog, equals, find, findAndInvoke, getActualData, getChildren, getDescribedObject, getDescribedObjects, getDescriptiveName, getDomain, getField, getIndexer, getIndexer, getIndexers, getMappableChildren, getMappableParent, getMapProperties, getMethods, getNameInScript, getNonValueProperties, getObjectClassName, getObjectCustomClassName, getObjectReference, getOwnedObjects, getOwner, getParent, getProcess, getProperties, getPropertyFromMap, getRecognitionProperties, getRecognitionPropertyWeight, getScriptCommandFlags, getStandardProperties, getTestData, getTopMappableParent, getTopParent, hashCode, invoke, invoke, invoke, invokeProxy, invokeProxy, isHtmlWebui, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, updateTestData, waitForExistencepublic ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject)
public ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor)
public ToggleTestObject(com.rational.test.ft.object.map.SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
public ToggleTestObject(com.rational.test.ft.object.TestObjectReference ref)
public ToggleTestObject(TestObject obj)
ToggleTestObject from another TestObject. Both are references to the same object.public void setState(State state)
setState in interface ITogglestate - one of the State valuescheckbox().setState(State.selected());Statepublic State getState()
public void select()
select in interface IToggleSTATE_SELECTED. The UnableToPerformActionException exception is thrown if
this action cannot be performed.checkbox.select();public void deselect()
deselect in interface IToggleNOT_SELECTED. The UnableToPerformActionException exception is thrown if
this action cannot be performed.checkbox.deselect();public void indeterminate()
indeterminate in interface IToggleINDETERMINATE. The UnableToPerformActionException exception is thrown if
this action cannot be performed. Most of the objects throw exceptions if the state is changed
to INDETERMINATE. Use the method within the try - catch to handle exceptionstry{
checkbox.indeterminate();
}catch(Exception e}
{}