public class HtmlProxy
extends com.rational.test.ft.domain.ProxyTestObject
implements com.rational.test.ft.domain.IInternalObjectStatus, com.rational.test.ft.domain.IHtmlCustomDomainEnablement, com.rational.test.ft.domain.IGetInterestingRecogProsForDynFind, com.rational.test.ft.domain.IQuickFind, com.rational.test.ft.domain.IXPathFind
This class further contains the default implementation of various base class methods that proxy implementations may need to extend or override.
TestObject
| Property | Usage |
|---|---|
| .bounds | A rectangle representing the bounding rectangle of the object in screen coordinates. |
| .class | This is the test object class name, for example "HtmlTable" for a <Table> element. |
| .id | This is the value of the id attribute of an element. |
| .name | This is the value of the name attribute (Form elements and Frames only) |
| .tag | This is the Html tag for the element |
| .text | This is the text inside of the HTML tags for bounding the
element. For example, <A>This is an Anchor<IMG src=map.gif></a>
the text property will return "This is an
Anchor. All white space are combined and reduced to a single a
blank character if consecutive white space characters are found. |
| .title | This is the value of the title attribute of an element. This is frequently the text displayed when hovering over the element with the mouse. |
| Modifier and Type | Class and Description |
|---|---|
class |
HtmlProxy.GetObjectRunnable |
class |
HtmlProxy.HtmlElementEnumeration |
class |
HtmlProxy.IntegerByReference
Calculate, and set the class index for the mappable targetChild of
"this" object (a parent object).
|
class |
HtmlProxy.InvalidNativeHandleException |
class |
HtmlProxy.JSObjectHtmlElementEnumeration |
class |
HtmlProxy.NativeProxyReleasedException |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BODYTAG |
static java.lang.String |
BOUNDSPROPERTY |
protected com.rational.test.ft.domain.IChannel |
channel |
protected static java.lang.String |
CLASSINDEX |
static java.lang.String |
CLASSPROPERTY |
static java.lang.String |
CLIENTRECTPROPERTY |
protected static com.rational.test.ft.util.FtDebug |
debug |
static java.lang.String |
DISABLEDPROPERTY |
protected static java.lang.String |
DOCCLASSINDEX |
java.util.HashMap |
dojoProps |
protected HtmlTestDomainImplementation |
domain |
static int |
HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE |
static java.lang.String |
IDPROPERTY |
protected static boolean |
isSiebelActive |
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator |
jswarapper |
static java.lang.String |
NAMEPROPERTY |
static java.lang.String |
OUTERTEXT |
protected java.lang.Boolean |
parentsTextDescendantsMayBeInteresting |
static java.lang.String |
READONLYPROPERTY |
static java.lang.String |
TAGPROPERTY |
protected static java.lang.String |
TESTDATA_TEXT |
static java.lang.String |
TEXTPROPERTY |
static java.lang.String |
TITLEPROPERTY |
static java.lang.String |
UNIQUEIDPROPERTY |
BROWSERTABTESTOBJECT_CLASSNAME, BROWSERTESTOBJECT_CLASSNAME, COLORDIALOGTESTOBJECT_CLASSNAME, CROSSDOMAINCONTAINER_CLASSNAME, DOCUMENTTESTOBJECT_CLASSNAME, DOMAINTESTOBJECT_CLASSNAME, ECLIPSETOPLEVELTESTOBJECT_CLASSNAME, EMBEDDEDBROWSERTESTOBJECT_CLASSNAME, FILEDIALOGTESTOBJECT_CLASSNAME, FRAMESUBITEMTESTOBJECT_CLASSNAME, FRAMETESTOBJECT_CLASSNAME, GEFEDITPARTTESTOBJECT_CLASSNAME, GUISUBITEMTESTOBJECT_CLASSNAME, GUITESTOBJECT_CLASSNAME, INTERNALFRAMETESTOBJECT_CLASSNAME, MESSAGEBOXTESTOBJECT_CLASSNAME, PALETTEGUISUBITEMTESTOBJECT_CLASSNAME, PROCESSTESTOBJECT_CLASSNAME, SCROLLSUBITEMTESTOBJECT_CLASSNAME, SCROLLTESTOBJECT_CLASSNAME, SELECTGUISUBITEMTESTOBJECT_CLASSNAME, SELECTSCROLLGUISUBITEMTESTOBJECT_CLASSNAME, SHELLTESTOBJECT_CLASSNAME, STATELESSGUISUBITEMTESTOBJECT_CLASSNAME, SUBITEMTESTOBJECT_CLASSNAME, TABITEMTESTOBJECT_CLASSNAME, TESTOBJECT_CLASSNAME, TEXTGUISUBITEMTESTOBJECT_CLASSNAME, TEXTGUITESTOBJECT_CLASSNAME, TEXTSCROLLTESTOBJECT_CLASSNAME, TEXTSELECTGUISUBITEMTESTOBJECT_CLASSNAME, TIMEOUTTESTOBJECT_CLASSNAME, TOGGLEGUITESTOBJECT_CLASSNAME, TOGGLETESTOBJECT_CLASSNAME, TOPLEVELSUBITEMTESTOBJECT_CLASSNAME, TOPLEVELTESTOBJECT_CLASSNAME, TRACKBARTESTOBJECT_CLASSNAME, vomClippedRectangle| Constructor and Description |
|---|
HtmlProxy(HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel,
long handle)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
HtmlProxy(HtmlTestDomainImplementation domain,
com.rational.test.ft.domain.IChannel channel,
long handle,
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
This sole constructor for all proxy objects sets the SUT object
as a member variable for the proxy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAdditionalRecognitionProperties(java.util.Hashtable result) |
protected void |
addChildrenHandlesToVector(HtmlProxy.HtmlElementEnumeration children,
java.util.Vector v) |
protected void |
addChildrenToVector(java.util.Enumeration children,
java.util.Vector v) |
protected void |
addChildrenToVector(java.util.Enumeration children,
java.util.Vector v,
com.rational.test.ft.sys.ContextObject contextobject) |
protected void |
addDataDrivableCommands(com.rational.test.ft.domain.ProxyTestObject proxy,
java.util.Vector commands,
int includeChildren)
Override this method from the ProxyTestObject.
|
void |
addDojoDomain() |
void |
addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
This method defines an additional recognition property that this proxy
should utilize.
|
void |
adjustCustomDomains(com.rational.test.ft.object.manager.FindPropertySet fps)
Adjust customdomains based on fps
|
protected java.lang.Boolean |
calculateParentsTextDescendantsMayBecomeInteresting() |
boolean |
callJqueryFind() |
void |
clearAllSubdomains() |
java.util.Vector |
clearCustomSubdomains() |
long |
detach()
Detach the native proxy and return its handle.
|
void |
disableAllHtmlCustomDomains()
Disable all custom domains
|
void |
disableHtmlCustomDomain(java.lang.String domainName)
Disable a html custom domain
|
void |
disableHtmlCustomDomains(java.lang.String[] domainNames)
Disable array of custom domains
|
void |
enableAllHtmlCustomDomains()
Enable all html custom domain
|
void |
enableHtmlCustomDomain(java.lang.String domainName)
Enable a html custom subdomain
|
void |
enableHtmlCustomDomains(java.lang.String[] domainNames)
Enable array of custom domains
|
boolean |
equals(java.lang.Object obj)
Overrides the object-level
equals with an equality against the
handles of the underlying test objects. |
boolean |
exists() |
java.lang.Object[] |
fetchProperties(java.lang.String[] props) |
com.rational.test.ft.domain.ProxyTestObject[] |
filterProxiesBasedOnProps(com.rational.test.ft.vp.impl.Property[] xpathNonOptProps,
com.rational.test.ft.domain.ProxyTestObject[] proxies) |
com.rational.test.ft.object.manager.FindResult |
find(com.rational.test.ft.object.map.IMappedTestObject[] pathToFind,
int myLevel) |
com.rational.test.ft.domain.ProxyTestObject[] |
findElementsByXpath(java.lang.String xpath) |
com.rational.test.ft.domain.ProxyTestObject[] |
findElementsDirectly(boolean mappable) |
com.rational.test.ft.domain.ProxyTestObject[] |
findElementsViaQuery(boolean mappable) |
com.rational.test.ft.object.manager.FindResult |
findElementWithDynamicFind(com.rational.test.ft.object.map.IMappedTestObject[] pathToFind,
int myLevel) |
HtmlProxy |
findElementWithName(java.lang.String name)
Find the element that is a child of this element which has the given name.
|
protected com.rational.test.ft.domain.html.HtmlProxy.AdditionalRecognitionProperty |
getAddedRecognitionProperty(java.lang.String propertyName)
This method returns the AdditionalRecognitionProperty object identified by propertyName
|
protected java.lang.Object |
getAddedRecognitionPropertyValue(java.lang.String propertyName)
This method returns the value associated with an
added recognition property. |
protected int |
getAddedRecognitionPropertyWeight(java.lang.String propertyName) |
java.lang.String |
getBrowserAppVersion() |
int |
getBrowserProcessId(java.lang.String browserName) |
CachedData |
getCachedData() |
com.rational.test.ft.domain.IChannel |
getChannel()
Return the channel associated with this object.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getChildren()
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getChildren(com.rational.test.ft.sys.ContextObject contextProxy)
Uses getChildrenEnumeration to implement.
|
long |
getChildren(long handle) |
java.util.Enumeration |
getChildrenEnumeration()
Enumerate child objects of the Html Element.
|
java.util.Enumeration |
getChildrenEnumeration(long handle) |
HtmlProxy.HtmlElementEnumeration |
getChildrenHandleEnumeration() |
long[] |
getChildrenHandles() |
long |
getChildrenN(long handle) |
com.rational.test.ft.domain.ProxyTestObject[] |
getChildrenWithTagType(java.lang.String tagType) |
protected com.rational.test.ft.value.RecognitionIndex |
getClassIndex() |
java.lang.String |
getCustomClassProperty() |
java.lang.String |
getCustomClassPropertyValue() |
java.lang.String |
getCustomDomainName(boolean isForParent,
boolean isForChildren) |
java.lang.String |
getCustomDomainName(com.rational.test.ft.sys.ContextObject contextobject) |
java.lang.String |
getCustomDomainName(com.rational.test.ft.domain.ProxyTestObject proxy) |
java.lang.String |
getCustomDomainNameForChildren() |
java.lang.String |
getCustomDomainNameForParent() |
java.lang.Object |
getCustomObject() |
com.rational.test.ft.sys.MethodSpecification |
getDataDrivableCommand()
This method must be implemented by any proxy that wishes to support
data driving.
|
java.lang.String |
getDescriptiveName()
Returns a name that can be used to describe the associated UI
object in a script.
|
boolean |
getDisabledProperty()
Check if the control is disabled.
|
protected com.rational.test.ft.value.RecognitionIndex |
getDocClassIndex() |
HtmlDocumentProxy |
getDocument()
Return a Proxy to the Html Document that contains this element.
|
HtmlDocumentProxy |
getDocument(long handle) |
long |
getDocumentHandle(long handle) |
com.rational.test.ft.sys.graphical.Window |
getDocumentWindow() |
com.rational.test.ft.sys.graphical.Window[] |
getDocumentWindow(com.rational.test.ft.sys.graphical.Window hWnd) |
HtmlTestDomainImplementation |
getDomain() |
HtmlProxy.HtmlElementEnumeration |
getElementHandlesByTag(java.lang.String tag) |
com.rational.test.ft.domain.ProxyTestObject[] |
getElementObjectsByTag(java.lang.String tag) |
com.rational.test.ft.domain.ProxyTestObject[] |
getElementsByNameInProxyTestObjects(java.lang.String name) |
long |
getElementsByTag(long handle,
java.lang.String tag) |
java.util.Enumeration |
getElementsByTag(java.lang.String tag) |
java.util.Enumeration |
getElementsByTagEnumeration(long handle,
java.lang.String tag) |
com.rational.test.ft.domain.ProxyTestObject[] |
getElementsByTagInProxyTestObjects(java.lang.String tag) |
long |
getElementsByTagN(long handle,
java.lang.String tag) |
java.util.Enumeration |
getElementsByXpath(com.rational.test.ft.vp.impl.Property[] props) |
java.util.Enumeration |
getElementsByXpath(java.lang.String xpath) |
java.util.Enumeration |
getElementsByXpathEnumeration(long handle,
java.lang.String xpath) |
com.rational.test.ft.domain.ProxyTestObject[] |
getElementsDirectly(com.rational.test.ft.vp.impl.Property property,
boolean mappable) |
long |
getHandle() |
java.lang.String |
getHtmlTag()
Return the HTML tag for this element.
|
static java.lang.String |
getHtmlTagNameFromClassProperty(java.lang.String classProperty) |
java.lang.String[] |
getIgnorableProperties() |
java.lang.Object |
getIndexer(java.lang.String name,
java.lang.Object[] indexes)
Gets the value of an indexed property
|
com.rational.test.ft.value.IndexerInfo[] |
getIndexers()
Gets information about a
TestObject's indexed properties |
java.util.Vector |
getInterestingRecogPropsForDynFind(java.util.Vector properties)
Return .customclass or .dojoclass for html customdomins
|
java.lang.Object |
getJsProps(long handle,
java.lang.String propName) |
com.rational.test.ft.domain.html.chrome.IBrowserCommunicator |
getJswarapper() |
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableChildren()
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableChildren(com.rational.test.ft.sys.ContextObject contextProxy)
Uses getChildrenEnumeration to implement.
|
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableElementsByNameInProxyTestObjects(java.lang.String name) |
com.rational.test.ft.domain.ProxyTestObject[] |
getMappableElementsByTagInProxyTestObjects(java.lang.String tag) |
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent()
Walks the
getParent() relationship until a mappable parent is encountered. |
com.rational.test.ft.domain.ProxyTestObject |
getMappableParent(com.rational.test.ft.sys.ContextObject contextProxy)
Walks the
getParent() relationship until a mappable parent is encountered. |
com.rational.test.ft.value.MethodInfo[] |
getMethods()
Returns an array of MethodInfos
|
com.rational.test.ft.sys.MethodSpecification |
getMethodSpecForPoint(java.awt.Point pt)
Return a MethodSpecification for a method that returns a java.awt.Point
for the specified coordinates.
|
java.util.Hashtable |
getNonValueProperties()
return the properties that are not supported because of the return value
|
java.lang.Object |
getObject() |
java.lang.String |
getObjectClassName() |
com.rational.test.ft.domain.ProxyTestObject[] |
getOwnedObjects() |
com.rational.test.ft.domain.ProxyTestObject[] |
getOwnedObjects(java.lang.String domainName)
Returns null only for html because the abstraction is not understood
in this way.
|
com.rational.test.ft.domain.ProxyTestObject |
getOwner()
Returns null always because object relationships are not
understood at this level of abstaction.
|
com.rational.test.ft.domain.ProxyTestObject |
getParent()
Returns null always because object relationships are not
understood at this level of abstaction.
|
com.rational.test.ft.domain.ProxyTestObject |
getParent(com.rational.test.ft.sys.ContextObject contextProxy)
Returns null always because object relationships are not
understood at this level of abstaction.
|
long |
getParent(long handle) |
long |
getParentN(long handle) |
java.util.Hashtable |
getProperties() |
java.lang.String[] |
getProperties(long handle) |
java.lang.Object |
getProperty(long handle,
java.lang.String propertyName) |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value for a specific property.
|
java.lang.Object |
getPropertyInternal(java.lang.String propertyName) |
java.lang.Object |
getPropertyInternalRunnable(java.lang.String propertyName) |
java.lang.Object |
getPropertyN(long nativeHandle,
java.lang.String propertyName) |
com.rational.test.ft.domain.ProxyTestObject[] |
getProxyTestObjectsFromEnumeration(java.util.Enumeration children) |
boolean |
getReadOnlyProperty() |
java.util.Hashtable |
getRecognitionProperties()
Returns an enumeration of properties used to uniquely identify the
associated test object in the SUT.
|
int |
getRecognitionPropertyWeight(java.lang.String propertyName)
Returns an indication of how useful this property is for recognition.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_HTML. |
protected java.lang.String |
getSavedDescriptiveName() |
com.rational.test.ft.script.ScriptCommandFlags |
getScriptCommandFlags() |
java.util.Hashtable |
getStandardProperties() |
java.lang.String[] |
getStandardProperties(long handle) |
com.rational.test.ft.vp.ITestData |
getTestData(java.lang.String testDataType)
This method constructs the specified verification data object.
|
java.util.Hashtable |
getTestDataTypes()
Returns a hashtable of data type descriptions of the verification
point data available with the associated object in the SUT.
|
com.rational.test.ft.domain.TestDomainImplementation |
getTestDomain()
Return the
TestDomainImplementation
that this proxy object is associated with. |
java.lang.String |
getTestObjectClassName()
The default GUI marshaller is returned.
|
java.lang.String |
getText()
Return the text associated with this element.
|
com.rational.test.ft.domain.ProxyTestObject |
getTopMappableParent()
Returns
getTopParent() which is the browser and
is always mappable. |
com.rational.test.ft.domain.ProxyTestObject |
getTopParent()
Returns a proxy object for the top parent of this object.
|
long |
getTopParent(long handle) |
protected com.rational.test.ft.domain.ProxyTestObject |
getTopParentInternal()
Returns a proxy object for the top most parent of this object, or null if
this object has no parent.
|
long |
getTopParentN(long handle) |
java.lang.String |
getUniqueId() |
java.lang.String |
getValueProperty() |
com.rational.test.ft.domain.ProxyTestObject |
getVisualTopParent() |
boolean |
hasAddedRecognitionProperties()
This method returns true if recocnition properties have been added
to this proxy from an external source through the
addRecognitionProperty method. |
boolean |
isClassIndexConsidered(java.util.Vector properties) |
protected boolean |
isClassIndexPropertyAndValueDefined() |
protected boolean |
isClassIndexSet()
Test if the class index has been set for this object
|
boolean |
isContextObjectSet() |
boolean |
isContextObjectSet(com.rational.test.ft.domain.ProxyTestObject proxy) |
protected boolean |
isDocClassIndexSet()
Test if the document class index has been set for this object
|
boolean |
isEqual(HtmlProxy sourceElem,
HtmlProxy targetElem) |
boolean |
isFindOptimized(com.rational.test.ft.object.manager.FindPropertySet fps) |
boolean |
isObjectDead() |
boolean |
isPropertyOptimizable(com.rational.test.ft.vp.impl.Property property) |
boolean |
isReleaseRequired() |
boolean |
isSameObject(java.lang.Object obj) |
boolean |
isScoreForFindBYIdorName() |
protected boolean |
isValidRecognitionProperty(java.lang.String propertyName)
This method may be override by a derived class to keep a property
from being added as a recognition property by a base class.
|
boolean |
isXpathSupported() |
static boolean |
matches(java.lang.String toBeCompared,
java.lang.String pattern)
Utility method to match strings for java 1.3
|
void |
processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
At this level of the Html proxy abstraction this method is null.
|
void |
release() |
void |
release(java.util.ArrayList handles) |
void |
release(java.util.ArrayList handles,
long exceptionHandle) |
void |
release(long handle) |
void |
release(long[] handles) |
void |
release(long[] handles,
long exceptionHandle) |
void |
releaseElementHandle(long handle) |
void |
releaseN(long nativeHandle) |
static java.lang.String |
replaceAll(java.lang.String originalString,
java.lang.String searchString,
java.lang.String toBeReplaced)
utility method for replacing all the patterns in a string equivalent to jdk 1.4 and above
|
boolean |
restoreAllCustomSubDomains() |
boolean |
restoreCustomSubDomains(java.util.Vector customDomains) |
void |
setCachedData(CachedData cachedData) |
void |
setClass(java.lang.String objectClass) |
protected void |
setClassIndex()
Calculate and set the classindex for this object.
|
protected void |
setClassIndex(int index) |
protected void |
setClassIndex(java.lang.Integer index) |
protected void |
setClassIndex(com.rational.test.ft.domain.ProxyTestObject proxyTestObject,
com.rational.test.ft.value.RecognitionIndex index) |
protected void |
setClassIndex(com.rational.test.ft.value.RecognitionIndex index) |
protected boolean |
setClassIndexOfChild(HtmlProxy.IntegerByReference startingIndex,
com.rational.test.ft.domain.ProxyTestObject targetChild,
int level) |
boolean |
setCustomClassProperty(java.lang.String customClassProperty) |
boolean |
setCustomClassPropertyValue(java.lang.String customClassPropertyValue) |
boolean |
setCustomDomainInContext(java.lang.String custDomainName) |
protected void |
setDocClassIndex() |
protected void |
setDocClassIndex(int index) |
protected void |
setDocClassIndex(java.lang.Integer index) |
protected void |
setDocClassIndex(com.rational.test.ft.value.RecognitionIndex index) |
void |
setDomain(HtmlTestDomainImplementation domain) |
void |
setIndexer(java.lang.String name,
java.lang.Object[] indexes,
java.lang.Object val)
Sets the value of an indexed property
|
void |
setJswarapper(com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswarapper) |
boolean |
setProperty(long handle,
java.lang.String propertyName,
java.lang.Object value) |
void |
setProperty(java.lang.String propertyName,
java.lang.Object value)
Set the value for a specific property.
|
protected void |
setSavedDescriptiveName(java.lang.String descriptiveName) |
boolean |
shouldBeMapped()
Returns false, by default only GUI test objects are mapped.
|
protected boolean |
shouldDocumentBeAdded(java.util.ArrayList docProps,
long handle) |
static java.lang.String[] |
split(java.lang.String value,
java.lang.String delimiter)
Split the given string.
|
com.rational.test.ft.vp.ITestData |
updateTestData(java.lang.String testDataType,
com.rational.test.ft.vp.ITestData testData)
This method updates the supplied test data object and returns it.
|
baseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getDataDrivableCommands, getElementWithFocus, getField, getObjectCustomClassName, getProxy, getScriptCommandAnchor, getVisualClippableParent, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping, suppressKeyActionprotected static com.rational.test.ft.util.FtDebug debug
public static final int HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE
public com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswarapper
protected com.rational.test.ft.domain.IChannel channel
public java.util.HashMap dojoProps
protected java.lang.Boolean parentsTextDescendantsMayBeInteresting
protected static boolean isSiebelActive
public static final java.lang.String TAGPROPERTY
public static final java.lang.String CLASSPROPERTY
public static final java.lang.String IDPROPERTY
public static final java.lang.String UNIQUEIDPROPERTY
public static final java.lang.String NAMEPROPERTY
public static final java.lang.String BOUNDSPROPERTY
public static final java.lang.String TEXTPROPERTY
public static final java.lang.String OUTERTEXT
public static final java.lang.String TITLEPROPERTY
public static final java.lang.String DISABLEDPROPERTY
public static final java.lang.String CLIENTRECTPROPERTY
public static final java.lang.String BODYTAG
protected static final java.lang.String CLASSINDEX
protected static final java.lang.String DOCCLASSINDEX
public static final java.lang.String READONLYPROPERTY
protected HtmlTestDomainImplementation domain
protected static final java.lang.String TESTDATA_TEXT
public HtmlProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle, com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswrap)
domain - - domain implementation that created this proxy.channel - - channel on which that proxy should be accessed.handle - - handle to native object.public HtmlProxy(HtmlTestDomainImplementation domain, com.rational.test.ft.domain.IChannel channel, long handle)
domain - - domain implementation that created this proxy.channel - - channel on which that proxy should be accessed.handle - - handle to native object.public java.lang.String getBrowserAppVersion()
public java.lang.String getValueProperty()
public CachedData getCachedData()
public void setCachedData(CachedData cachedData)
public HtmlTestDomainImplementation getDomain()
public void setDomain(HtmlTestDomainImplementation domain)
public java.lang.String getCustomClassProperty()
public com.rational.test.ft.domain.html.chrome.IBrowserCommunicator getJswarapper()
public void setJswarapper(com.rational.test.ft.domain.html.chrome.IBrowserCommunicator jswarapper)
public boolean setCustomClassProperty(java.lang.String customClassProperty)
public java.lang.String getCustomClassPropertyValue()
public boolean setCustomClassPropertyValue(java.lang.String customClassPropertyValue)
public boolean isObjectDead()
isObjectDead in interface com.rational.test.ft.domain.IInternalObjectStatuspublic com.rational.test.ft.domain.IChannel getChannel()
getChannel in interface com.rational.test.ft.domain.IChannelObjectgetChannel in class com.rational.test.ft.domain.ProxyTestObjectpublic long getHandle()
public boolean equals(java.lang.Object obj)
equals with an equality against the
handles of the underlying test objects.equals in class com.rational.test.ft.domain.ProxyTestObjectobj - The object to compare against. If obj is a
ProxyTestObject, the comparison is made with
the underlying object.true if the underlying test objects are equal.public boolean isSameObject(java.lang.Object obj)
isSameObject in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String getTestObjectClassName()
getTestObjectClassName in interface com.rational.test.ft.domain.IProxyBasegetTestObjectClassName in class com.rational.test.ft.domain.ProxyTestObjectpublic final com.rational.test.ft.domain.TestDomainImplementation getTestDomain()
TestDomainImplementation
that this proxy object is associated with.
This method should not be overriden.getTestDomain in interface com.rational.test.ft.domain.IProxyBasegetTestDomain in class com.rational.test.ft.domain.ProxyTestObjectTestDomainImplementation.protected void setSavedDescriptiveName(java.lang.String descriptiveName)
protected java.lang.String getSavedDescriptiveName()
public java.lang.String getDescriptiveName()
getDescriptiveName in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String getRole()
TestObjectRole.ROLE_HTML.getRole in class com.rational.test.ft.domain.ProxyTestObjectpublic void processMouseEvent(com.rational.test.ft.domain.IMouseActionInfo action)
HtmlGuiProxy level support.processMouseEvent in class com.rational.test.ft.domain.ProxyTestObjectaction - The event cache and other mouse state information
for this mouse action.IMouseActionInfo,
MethodSpecificationpublic java.lang.String getUniqueId()
getUniqueId in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean shouldBeMapped()
shouldBeMapped in class com.rational.test.ft.domain.ProxyTestObjectpublic static java.lang.String[] split(java.lang.String value,
java.lang.String delimiter)
value - delimiter - public java.lang.Object getObject()
getObject in class com.rational.test.ft.sys.RegisteredObjectpublic java.lang.Object getCustomObject()
public java.lang.String getObjectClassName()
getObjectClassName in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getParent(com.rational.test.ft.sys.ContextObject contextProxy)
getParent in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getParent()
getParent in class com.rational.test.ft.domain.ProxyTestObjectpublic long getParent(long handle)
public long getParentN(long handle)
public com.rational.test.ft.domain.ProxyTestObject getMappableParent()
getParent() relationship until a mappable parent is encountered.getMappableParent in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getMappableParent(com.rational.test.ft.sys.ContextObject contextProxy)
getParent() relationship until a mappable parent is encountered.getMappableParent in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean isContextObjectSet()
public boolean isContextObjectSet(com.rational.test.ft.domain.ProxyTestObject proxy)
public java.lang.String getCustomDomainName(com.rational.test.ft.domain.ProxyTestObject proxy)
public java.lang.String getCustomDomainNameForParent()
public java.lang.String getCustomDomainNameForChildren()
public java.lang.String getCustomDomainName(boolean isForParent,
boolean isForChildren)
public java.lang.String getCustomDomainName(com.rational.test.ft.sys.ContextObject contextobject)
public boolean setCustomDomainInContext(java.lang.String custDomainName)
public boolean restoreAllCustomSubDomains()
public void addDojoDomain()
public java.util.Vector clearCustomSubdomains()
public void clearAllSubdomains()
public boolean restoreCustomSubDomains(java.util.Vector customDomains)
public com.rational.test.ft.domain.ProxyTestObject getTopParent()
getTopParent in class com.rational.test.ft.domain.ProxyTestObjectprotected com.rational.test.ft.domain.ProxyTestObject getTopParentInternal()
public long getTopParent(long handle)
public long getTopParentN(long handle)
public com.rational.test.ft.domain.ProxyTestObject getTopMappableParent()
getTopParent() which is the browser and
is always mappable.getTopMappableParent in class com.rational.test.ft.domain.ProxyTestObjectpublic java.util.Enumeration getChildrenEnumeration()
public long getChildren(long handle)
public long getChildrenN(long handle)
public java.util.Enumeration getChildrenEnumeration(long handle)
protected void addChildrenToVector(java.util.Enumeration children,
java.util.Vector v)
protected void addChildrenToVector(java.util.Enumeration children,
java.util.Vector v,
com.rational.test.ft.sys.ContextObject contextobject)
public com.rational.test.ft.domain.ProxyTestObject[] getChildren(com.rational.test.ft.sys.ContextObject contextProxy)
getChildren in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject[] getChildren()
getChildren in class com.rational.test.ft.domain.ProxyTestObjectprotected com.rational.test.ft.value.RecognitionIndex getClassIndex()
protected void setClassIndex()
protected void setClassIndex(int index)
protected void setClassIndex(java.lang.Integer index)
protected void setClassIndex(com.rational.test.ft.value.RecognitionIndex index)
protected void setClassIndex(com.rational.test.ft.domain.ProxyTestObject proxyTestObject,
com.rational.test.ft.value.RecognitionIndex index)
protected boolean isClassIndexSet()
protected boolean isDocClassIndexSet()
protected com.rational.test.ft.value.RecognitionIndex getDocClassIndex()
protected void setDocClassIndex()
protected void setDocClassIndex(int index)
protected void setDocClassIndex(java.lang.Integer index)
protected void setDocClassIndex(com.rational.test.ft.value.RecognitionIndex index)
protected boolean isClassIndexPropertyAndValueDefined()
protected boolean setClassIndexOfChild(HtmlProxy.IntegerByReference startingIndex, com.rational.test.ft.domain.ProxyTestObject targetChild, int level)
protected java.lang.Boolean calculateParentsTextDescendantsMayBecomeInteresting()
public com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren()
getMappableChildren in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject[] getMappableChildren(com.rational.test.ft.sys.ContextObject contextProxy)
getMappableChildren in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getOwner()
getOwner in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject[] getOwnedObjects()
getOwnedObjects in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject[] getOwnedObjects(java.lang.String domainName)
getOwnedObjects in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.sys.MethodSpecification getMethodSpecForPoint(java.awt.Point pt)
IGraphical.getScreenPoint will be returned. However, if a proxy can fingetMethodSpecForPoint in class com.rational.test.ft.domain.ProxyTestObjectaction - The event cache and other mouse state information
for this mouse action.MethodSpecificationpublic java.util.Hashtable getRecognitionProperties()
getRecognitionProperties in class com.rational.test.ft.domain.ProxyTestObjectprotected boolean isValidRecognitionProperty(java.lang.String propertyName)
protected void addAdditionalRecognitionProperties(java.util.Hashtable result)
public int getRecognitionPropertyWeight(java.lang.String propertyName)
getRecognitionPropertyWeight in class com.rational.test.ft.domain.ProxyTestObjectprotected int getAddedRecognitionPropertyWeight(java.lang.String propertyName)
public void addRecognitionProperty(java.lang.String property,
java.lang.Object value,
int weight)
getRecognitionProperties method.addRecognitionProperty in class com.rational.test.ft.domain.ProxyTestObjectproperty - The recognition property name. Care should be taken to
avoid conflicts with existing property names.value - The value of the added recognition property.weight - The weight associated with this recognition property.
This value should be returned when the getRecognitionPropertyWeight method is called.getRecognitionProperties(),
getRecognitionPropertyWeight(String),
getProperty(String)public boolean hasAddedRecognitionProperties()
addRecognitionProperty method.hasAddedRecognitionProperties in class com.rational.test.ft.domain.ProxyTestObjectaddRecognitionProperty
method.addRecognitionProperty(String,Object,int)protected com.rational.test.ft.domain.html.HtmlProxy.AdditionalRecognitionProperty getAddedRecognitionProperty(java.lang.String propertyName)
protected java.lang.Object getAddedRecognitionPropertyValue(java.lang.String propertyName)
added recognition property.
This method exists for quick lookup of recognition properties that have been
added to this proxies recognition property set.propertyName - The name of the added recognition property to look for.null if the property does not exist.public boolean getDisabledProperty()
false value is returned (the control is assumed to be enabled).true is returned if the control is disabled.public boolean getReadOnlyProperty()
public java.util.Hashtable getProperties()
getProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String[] getProperties(long handle)
public java.util.Hashtable getStandardProperties()
getStandardProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String[] getStandardProperties(long handle)
public java.util.Hashtable getNonValueProperties()
getNonValueProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.value.MethodInfo[] getMethods()
getMethods in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.Object getProperty(java.lang.String propertyName)
getProperty in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.Object getPropertyInternal(java.lang.String propertyName)
public java.lang.Object[] fetchProperties(java.lang.String[] props)
public java.lang.Object getPropertyInternalRunnable(java.lang.String propertyName)
public int getBrowserProcessId(java.lang.String browserName)
public com.rational.test.ft.sys.graphical.Window[] getDocumentWindow(com.rational.test.ft.sys.graphical.Window hWnd)
public com.rational.test.ft.sys.graphical.Window getDocumentWindow()
public java.lang.Object getProperty(long handle,
java.lang.String propertyName)
public java.lang.Object getJsProps(long handle,
java.lang.String propName)
public java.lang.Object getPropertyN(long nativeHandle,
java.lang.String propertyName)
public void setProperty(java.lang.String propertyName,
java.lang.Object value)
setProperty in class com.rational.test.ft.domain.ProxyTestObjectpublic boolean setProperty(long handle,
java.lang.String propertyName,
java.lang.Object value)
public java.lang.Object getIndexer(java.lang.String name,
java.lang.Object[] indexes)
getIndexer in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.value.IndexerInfo[] getIndexers()
TestObject's indexed propertiesgetIndexers in class com.rational.test.ft.domain.ProxyTestObjectpublic void setIndexer(java.lang.String name,
java.lang.Object[] indexes,
java.lang.Object val)
setIndexer in class com.rational.test.ft.domain.ProxyTestObjectpublic void releaseElementHandle(long handle)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic com.rational.test.ft.script.ScriptCommandFlags getScriptCommandFlags()
getScriptCommandFlags in class com.rational.test.ft.domain.ProxyTestObjectpublic long detach()
public boolean isReleaseRequired()
isReleaseRequired in class com.rational.test.ft.sys.RegisteredObjectpublic void release()
release in class com.rational.test.ft.sys.RegisteredObjectpublic void release(long handle)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic void releaseN(long nativeHandle)
throws java.lang.IllegalAccessException
java.lang.IllegalAccessExceptionpublic java.lang.String getHtmlTag()
public java.lang.String getText()
public HtmlProxy findElementWithName(java.lang.String name)
- - name - element should have this name attributepublic HtmlDocumentProxy getDocument()
public HtmlDocumentProxy getDocument(long handle)
public long getDocumentHandle(long handle)
public java.util.Hashtable getTestDataTypes()
getTestDataTypes in class com.rational.test.ft.domain.ProxyTestObjectgetTestData(String),
ITestDatapublic com.rational.test.ft.vp.ITestData getTestData(java.lang.String testDataType)
getTestDataTypes.getTestData in class com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.getTestDataTypes(),
ITestDatapublic com.rational.test.ft.vp.ITestData updateTestData(java.lang.String testDataType,
com.rational.test.ft.vp.ITestData testData)
getTestDataTypes.
The testData is a previously supplied ITestData
object that needs to be updated to reflect the current state
of the associated test object.updateTestData in class com.rational.test.ft.domain.ProxyTestObjecttestDataType - A test data type supplied by
getTestDataTypes.testData - The test data base object that requires
updating.getTestDataTypes(),
ITestDatapublic boolean isClassIndexConsidered(java.util.Vector properties)
isClassIndexConsidered in class com.rational.test.ft.domain.ProxyTestObjectpublic com.rational.test.ft.domain.ProxyTestObject getVisualTopParent()
getVisualTopParent in class com.rational.test.ft.domain.ProxyTestObjectpublic HtmlProxy.HtmlElementEnumeration getElementHandlesByTag(java.lang.String tag)
public java.util.Enumeration getElementsByTagEnumeration(long handle,
java.lang.String tag)
public void release(long[] handles)
public void release(java.util.ArrayList handles)
public void release(java.util.ArrayList handles,
long exceptionHandle)
public void release(long[] handles,
long exceptionHandle)
public java.util.Enumeration getElementsByTag(java.lang.String tag)
public com.rational.test.ft.domain.ProxyTestObject[] getElementObjectsByTag(java.lang.String tag)
public long getElementsByTag(long handle,
java.lang.String tag)
public long getElementsByTagN(long handle,
java.lang.String tag)
public com.rational.test.ft.sys.MethodSpecification getDataDrivableCommand()
null value is returned.getDataDrivableCommand in interface com.rational.test.ft.domain.IDataDrivengetDataDrivableCommand in class com.rational.test.ft.domain.ProxyTestObjectProxyTestObject.getDataDrivableCommands(int)protected void addDataDrivableCommands(com.rational.test.ft.domain.ProxyTestObject proxy,
java.util.Vector commands,
int includeChildren)
addDataDrivableCommands in class com.rational.test.ft.domain.ProxyTestObjectpublic java.lang.String[] getIgnorableProperties()
getIgnorableProperties in class com.rational.test.ft.domain.ProxyTestObjectpublic static java.lang.String getHtmlTagNameFromClassProperty(java.lang.String classProperty)
protected void addChildrenHandlesToVector(HtmlProxy.HtmlElementEnumeration children, java.util.Vector v)
public HtmlProxy.HtmlElementEnumeration getChildrenHandleEnumeration()
public long[] getChildrenHandles()
public com.rational.test.ft.domain.ProxyTestObject[] getChildrenWithTagType(java.lang.String tagType)
public void enableHtmlCustomDomain(java.lang.String domainName)
enableHtmlCustomDomain in interface com.rational.test.ft.domain.IHtmlCustomDomainEnablementpublic void enableHtmlCustomDomains(java.lang.String[] domainNames)
enableHtmlCustomDomains in interface com.rational.test.ft.domain.IHtmlCustomDomainEnablementpublic void enableAllHtmlCustomDomains()
enableAllHtmlCustomDomains in interface com.rational.test.ft.domain.IHtmlCustomDomainEnablementpublic void disableHtmlCustomDomain(java.lang.String domainName)
disableHtmlCustomDomain in interface com.rational.test.ft.domain.IHtmlCustomDomainEnablementpublic void disableAllHtmlCustomDomains()
disableAllHtmlCustomDomains in interface com.rational.test.ft.domain.IHtmlCustomDomainEnablementpublic void disableHtmlCustomDomains(java.lang.String[] domainNames)
disableHtmlCustomDomains in interface com.rational.test.ft.domain.IHtmlCustomDomainEnablementpublic java.util.Vector getInterestingRecogPropsForDynFind(java.util.Vector properties)
getInterestingRecogPropsForDynFind in interface com.rational.test.ft.domain.IGetInterestingRecogProsForDynFindpublic void adjustCustomDomains(com.rational.test.ft.object.manager.FindPropertySet fps)
adjustCustomDomains in interface com.rational.test.ft.domain.IHtmlCustomDomainEnablementpublic static boolean matches(java.lang.String toBeCompared,
java.lang.String pattern)
pattern - toBeCompared - public static java.lang.String replaceAll(java.lang.String originalString,
java.lang.String searchString,
java.lang.String toBeReplaced)
originalString - searchString - toBeReplaced - public boolean isFindOptimized(com.rational.test.ft.object.manager.FindPropertySet fps)
isFindOptimized in interface com.rational.test.ft.domain.IQuickFindpublic boolean callJqueryFind()
callJqueryFind in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] findElementsDirectly(boolean mappable)
findElementsDirectly in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] filterProxiesBasedOnProps(com.rational.test.ft.vp.impl.Property[] xpathNonOptProps,
com.rational.test.ft.domain.ProxyTestObject[] proxies)
protected boolean shouldDocumentBeAdded(java.util.ArrayList docProps,
long handle)
public com.rational.test.ft.domain.ProxyTestObject[] findElementsViaQuery(boolean mappable)
findElementsViaQuery in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] getProxyTestObjectsFromEnumeration(java.util.Enumeration children)
public java.util.Enumeration getElementsByXpath(com.rational.test.ft.vp.impl.Property[] props)
public java.util.Enumeration getElementsByXpath(java.lang.String xpath)
public java.util.Enumeration getElementsByXpathEnumeration(long handle,
java.lang.String xpath)
public com.rational.test.ft.object.manager.FindResult find(com.rational.test.ft.object.map.IMappedTestObject[] pathToFind,
int myLevel)
find in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.object.manager.FindResult findElementWithDynamicFind(com.rational.test.ft.object.map.IMappedTestObject[] pathToFind,
int myLevel)
findElementWithDynamicFind in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] getElementsByNameInProxyTestObjects(java.lang.String name)
getElementsByNameInProxyTestObjects in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] getElementsByTagInProxyTestObjects(java.lang.String tag)
getElementsByTagInProxyTestObjects in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] getElementsDirectly(com.rational.test.ft.vp.impl.Property property,
boolean mappable)
getElementsDirectly in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] getMappableElementsByNameInProxyTestObjects(java.lang.String name)
getMappableElementsByNameInProxyTestObjects in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] getMappableElementsByTagInProxyTestObjects(java.lang.String tag)
getMappableElementsByTagInProxyTestObjects in interface com.rational.test.ft.domain.IQuickFindpublic boolean isPropertyOptimizable(com.rational.test.ft.vp.impl.Property property)
isPropertyOptimizable in interface com.rational.test.ft.domain.IQuickFindpublic boolean isScoreForFindBYIdorName()
isScoreForFindBYIdorName in interface com.rational.test.ft.domain.IQuickFindpublic com.rational.test.ft.domain.ProxyTestObject[] findElementsByXpath(java.lang.String xpath)
findElementsByXpath in interface com.rational.test.ft.domain.IXPathFindpublic boolean isXpathSupported()
isXpathSupported in interface com.rational.test.ft.domain.IXPathFindpublic void setClass(java.lang.String objectClass)
public boolean exists()