public class DocumentTestObject extends GuiTestObject
TestObject
class.ignoreTheObjectState, ref
Constructor and Description |
---|
DocumentTestObject(SpyMappedTestObject mappedObject)
For internal use.
|
DocumentTestObject(SpyMappedTestObject mappedObject,
TestObject anchor)
For internal use.
|
DocumentTestObject(SpyMappedTestObject mappedObject,
TestObject anchor,
long scriptCommandFlags)
For internal use.
|
DocumentTestObject(TestObjectReference ref)
For internal use.
|
Modifier and Type | Method and Description |
---|---|
int |
getAjaxCompletedRequests()
Return the count of completed AJAX request
|
int |
getAjaxPendingRequests()
Return the number of pending AJAX request.
|
java.lang.String |
invokeScript(java.lang.String method)
Execute JavaScript in the given page
|
void |
setAjaxTrace(boolean value)
To turn the AJAX Request tracing facility ON or OFF.
|
void |
waitForAjaxCompletedRequests(int noOfCompletedRequests)
Wait untill the specified count of AJAX request are completed
|
void |
waitForAjaxPendingRequests()
Wait until all pending request gets completed.
|
void |
waitForAjaxPendingRequests(int noOfPendingRequests)
Wait for the specified count of pending requests
|
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
exists, exists, exists, find, find, findAndInvoke, findAndInvokeProxy, getProperty, getTestDataTypes, invoke, invokeProxy, unregister, waitForExistence
compare, 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, isLoggedDuringUnregister, isMappedObject, isSameObject, isScreenTestObject, isTopLevelTestObject, performTest, performTest, performTest, performTest, setIndexer, setIndexer, setLoggedDuringUnregister, setMapProperties, setProperty, toString, updateTestData, waitForExistence
public DocumentTestObject(SpyMappedTestObject mappedObject)
DocumentTestObject
.public DocumentTestObject(SpyMappedTestObject mappedObject, TestObject anchor)
DocumentTestObject
.public DocumentTestObject(SpyMappedTestObject mappedObject, TestObject anchor, long scriptCommandFlags)
DocumentTestObject
.public DocumentTestObject(TestObjectReference ref)
DocumentTestObject
from another TestObjectReference
.
Both are references to the same object.public void setAjaxTrace(boolean value)
value
- true
for turning ON, false
for turning OFFgetAjaxPendingRequests()
API. Similarly,
the number completed AJAX requests also get stored and
can be retrieve using getAjaxCompletedRequests()
API.document_ibmIndia().setAjaxTrace(true);
public int getAjaxPendingRequests()
document_ibmIndia().setAjaxTrace(true);
int pendingRequest = document_ibmIndia().getAjaxPendingRequests();
document_ibmIndia().setAjaxTrace(false);
public void waitForAjaxPendingRequests()
document_ibmIndia().setAjaxTrace(true);
document_ibmIndia().waitForAjaxPendingRequests();
document_ibmIndia().setAjaxTrace(false);
public void waitForAjaxPendingRequests(int noOfPendingRequests)
AjaxWaitTimeOutException()
- on timeout.noOfPendingRequests
- - number of allowed pending requests
document_ibmIndia().setAjaxTrace(true);
document_ibmIndia().waitForAjaxPendingRequests(2);
document_ibmIndia().setAjaxTrace(false);
getAjaxPendingRequests()
public int getAjaxCompletedRequests()
document_ibmIndia().setAjaxTrace(true);
int numCompletedRequest = document_ibmIndia().getAjaxCompletedRequests();
document_ibmIndia().setAjaxTrace(false);
public void waitForAjaxCompletedRequests(int noOfCompletedRequests)
AjaxWaitTimeOutException()
- on timeout.noOfCompletedRequests
- - number of completed requests to wait
document_ibmIndia().setAjaxTrace(true);
int numCompletedRequest = document_ibmIndia().waitForAjaxCompletedRequests(2);
document_ibmIndia().setAjaxTrace(false);
public java.lang.String invokeScript(java.lang.String method)
method
- java.lang.String the JavaScript method nameDocumentTestObject
object.
Internally uses EvalString() API provided by the Browsers to execute the script.document_ibmIndia().invokeScript("verifyCred('username', 'password')");