public class EditboxProxy extends InputProxy
GuiTestObject
| Type | Desciption | |
|---|---|---|
| text | Visible Text | ITestDataText |
| Property | Usage |
|---|---|
| .alt | The value of the alt attribute an element. This is the "alternate" text for the element, frequently displayed by the browser when the mouse hovers over the element. |
| .bounds | A rectangle representing the bounding rectangle of the object in screen coordinates. |
| .checked | This is a boolean value indicating whether a checkboxed is currently checked (true) or not (false). |
| .class | This is the test object class name, for example "HtmlTable" for a <Table> element. |
| .className | This the value of the class attribute of an element |
| .defaultChecked | This is a boolean value for the defaultchecked attribute of the element. |
| .defaultValue | This is the value of the defaultValue attribute of the element. |
| .disabled | The value of the disabled attribute of an element, returned as a boolean. If true then user input is currently disabled for this item. |
| .id | This is the value of the id attribute of an element. |
| .maxLength | For an edit control (Input type=Text or TextArea) this indicates the maximum number of characters a user may enter. |
| .name | This is the value of the name attribute (Form elements and Frames only) |
| .offsetHeight | The height of the element. |
| .offsetLeft | The offset of the element from its offset parent in the DOM. |
| .offsetTop | The offset of the element from its offset parent in the DOM. |
| .offsetWidth | The width of the element. |
| .readOnly | The value of the readonly attribute of an element. A boolean value that when true indicates the form element is read only. |
| .screenLeft | Upper left corner of bounding rectangle in screen coordinates, x component. |
| .screenTop | Upper left corner of bounding rectangle in screen coordinates, y component. |
| .size | The value of the size attribute of an element. For a Select element this indicates the number of items displayed at once in the list. If size > 1 then the list appears as listbox, otherwise the list appears as a Combodropdown. |
| .src | This is the value of the src attribute for the element. For images and image buttons this is a URL specifying the desired image file. |
| .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. |
| .type | This is the value of the Type attribute of an element. For example, for an Input element this will be text, password, checkbox, radio, submit, image, reset, button, hidden,orfile. |
| .value | This is the value of the value attribute of an element. In Form elements this represents the value which will be sent when the form is posted. |
HtmlGuiProxy.Clicker, HtmlGuiProxy.DoubleClicker, HtmlGuiProxy.Dragger, HtmlGuiProxy.Hoverer, HtmlGuiProxy.nClickDragger, HtmlGuiProxy.nClicker, HtmlGuiProxy.PointIteratorHtmlProxy.GetObjectRunnable, HtmlProxy.HtmlElementEnumeration, HtmlProxy.IntegerByReference, HtmlProxy.InvalidNativeHandleException, HtmlProxy.JSObjectHtmlElementEnumeration, HtmlProxy.NativeProxyReleasedExceptionTESTDATA_SUBMITcurrentMethod, LEFT, MAXIMIZE, OFFSETHEIGHTPROPERTY, OFFSETLEFTPROPERTY, OFFSETRECTPROPERTY, OFFSETTOPPROPERTY, OFFSETWIDTHPROPERTY, RESTOREBODYTAG, BOUNDSPROPERTY, channel, CLASSINDEX, CLASSPROPERTY, CLIENTRECTPROPERTY, debug, DOCCLASSINDEX, dojoProps, domain, HTMLPROXYCHANNELRUNNABLE_TIMEOUTVALUE, IDPROPERTY, isSiebelActive, jswarapper, NAMEPROPERTY, parentsTextDescendantsMayBeInteresting, READONLYPROPERTY, TAGPROPERTY, TESTDATA_TEXT, TEXTPROPERTY, UNIQUEIDPROPERTYBROWSERTABTESTOBJECT_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, vomClippedRectangleCUSTOM_DOMAIN_LIST, DOJO_CUSTOM_DOMAIN_NAME, SAPWEBPORTAL_CUSTOM_DOMAIN_NAMEINCLUDE_ALL, INCLUDE_JUSTOBJECT, INCLUDE_SIBLINGS| Constructor and Description |
|---|
EditboxProxy(HtmlTestDomainImplementation domain,
IChannel channel,
long handle) |
| Modifier and Type | Method and Description |
|---|---|
void |
click(MouseModifiers modifiers) |
protected void |
clickAtScreenPoint(MouseModifiers modifiers,
java.awt.Point screenPoint)
Note****
The following method and the TextBoxClicker below has been overridden below to fix: WI 4812
After Just clicking the Textbox if we have to scroll then the Textbox seems to be snatching the focus back.
|
java.lang.String |
getClearscriptSimpleName() |
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.
|
java.lang.String |
getRole()
Returns
TestObjectRole.ROLE_TEXT. |
java.lang.String |
getTestObjectClassName()
The default GUI marshaller is returned.
|
java.lang.String |
getText()
Allow direct acess to the text property on the control.
|
boolean |
isEditable()
Check if the text component is editable.
|
boolean |
isInView()
Is the object in view (not clipped)?
|
boolean |
isReadOnly() |
void |
setText(java.lang.String text)
Directly modify the text on the control.
|
boolean |
shouldBeMapped()
Always returns
true, because all HTML GUI objects are interesting. |
getSubmitData, getTestData, getTestDataTypes, isEnabled, setProperty, updateTestDataactivateTopWindow, click, click, clickWithMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouse, clickWithOutMouseN, convertFromScreenToOffset, doScroll, doubleClick, doubleClick, doubleClick, doubleClickAtScreenPoint, drag, drag, drag, drag, dragAtScreenPoint, dragToScreenPoint, dragToScreenPoint, dragToScreenPoint, ensureObjectIsVisible, getActionArgs, getChildAtPoint, getChildAtPoint, getChildAtPointN, getChildrenHandlesMatchingProperty, getClippedScreenRectangle, getClippingParent, getClippingParentRectangle, getCurrentMethod, getDefaultActionArgs, getDefaultPointToClick, getDefaultPointToClick, getMappableDocument, getMethodName, getMethodSpecForPoint, getPointFromAction, getPointOnObject, getPointToClick, getScreenCenter, getScreenPoint, getScreenPoint, getScreenRectangle, getTargetChildHandles, getTargetChildItem, getTargetChildItem, getTargetChildItems, getVisualClippableParent, hasFocus, hover, hover, hover, hover, hoverAtScreenPoint, isInView, isOpaque, isPointInObject, isPointInObject, isShowing, mouseMove, mouseMove, nClick, nClick, nClickAtScreenPoint, nClickDrag, nClickDragAtScreenPoint, nClickDragToScreenPoint, performAction, performClick, performClick, performDoubleClick, performSelect, performSetText, performWindowAction, processHoverMouseEvent, processMouseEvent, processPreDownMouseEvent, processPreUpMouseEvent, proxyGetChildAtPoint, restoreTopLevelWindow, scrollIntoView, scrollIntoView, scrollIntoView, scrollIntoViewN, scrollIntoViewWithDirection, scrollIntoViewWithDirectionN, setClickArgs, setCurrentMethod, setDownPointArgs, setDrag, setMethodSpecification, setMethodSpecification, setMultiClickAction, snapToRectangleaddAdditionalRecognitionProperties, addChildrenHandlesToVector, addChildrenToVector, addChildrenToVector, addDataDrivableCommands, addDojoDomain, addRecognitionProperty, adjustCustomDomains, calculateParentsTextDescendantsMayBecomeInteresting, callJqueryFind, clearAllSubdomains, clearCustomSubdomains, detach, disableAllHtmlCustomDomains, disableHtmlCustomDomain, disableHtmlCustomDomains, enableAllHtmlCustomDomains, enableHtmlCustomDomain, enableHtmlCustomDomains, equals, fetchProperties, find, findElementsByXpath, findElementsDirectly, findElementsViaQuery, findElementWithDynamicFind, findElementWithName, getAddedRecognitionProperty, getAddedRecognitionPropertyValue, getAddedRecognitionPropertyWeight, getBrowserAppVersion, getCachedData, getChannel, getChildren, getChildren, getChildren, getChildrenEnumeration, getChildrenEnumeration, getChildrenHandleEnumeration, getChildrenHandles, getChildrenN, getChildrenWithTagType, getClassIndex, getCustomClassProperty, getCustomClassPropertyValue, getCustomDomainName, getCustomDomainName, getCustomDomainName, getCustomDomainNameForChildren, getCustomDomainNameForParent, getCustomObject, getDisabledProperty, getDocClassIndex, getDocument, getDocument, getDocumentHandle, getDocumentWindow, getDomain, getElementHandlesByTag, getElementObjectsByTag, getElementsByNameInProxyTestObjects, getElementsByTag, getElementsByTag, getElementsByTagEnumeration, getElementsByTagInProxyTestObjects, getElementsByTagN, getElementsByXpath, getElementsByXpath, getElementsByXpathEnumeration, getElementsDirectly, getHandle, getHtmlTag, getHtmlTagNameFromClassProperty, getIgnorableProperties, getIndexer, getIndexers, getInterestingRecogPropsForDynFind, getJsProps, getJswarapper, getMappableChildren, getMappableChildren, getMappableElementsByNameInProxyTestObjects, getMappableElementsByTagInProxyTestObjects, getMappableParent, getMappableParent, getMethods, getNonValueProperties, getObject, getObjectClassName, getOwnedObjects, getOwnedObjects, getOwner, getParent, getParent, getParentN, getProperties, getProperties, getProperty, getProperty, getPropertyInternal, getPropertyInternalRunnable, getPropertyN, getProxyTestObjectsFromEnumeration, getReadOnlyProperty, getRecognitionProperties, getRecognitionPropertyWeight, getSavedDescriptiveName, getScriptCommandFlags, getStandardProperties, getStandardProperties, getTestDomain, getTopMappableParent, getTopParent, getTopParent, getTopParentInternal, getTopParentN, getUniqueId, getValueProperty, getVisualTopParent, hasAddedRecognitionProperties, isClassIndexConsidered, isClassIndexPropertyAndValueDefined, isClassIndexSet, isContextObjectSet, isContextObjectSet, isDocClassIndexSet, isEqual, isFindOptimized, isObjectDead, isPropertyOptimizable, isReleaseRequired, isSameObject, isScoreForFindBYIdorName, isValidRecognitionProperty, isXpathSupported, matches, release, release, release, release, release, release, releaseElementHandle, releaseN, replaceAll, restoreAllCustomSubDomains, restoreCustomSubDomains, setCachedData, setClass, setClassIndex, setClassIndex, setClassIndex, setClassIndex, setClassIndex, setClassIndexOfChild, setCustomClassProperty, setCustomClassPropertyValue, setCustomDomainInContext, setDocClassIndex, setDocClassIndex, setDocClassIndex, setDocClassIndex, setDomain, setIndexer, setJswarapper, setProperty, setSavedDescriptiveName, shouldDocumentBeAdded, splitbaseClassMatch, canTakeVP, findChildrenWithProperties, findChildrenWithPropertiesAndInvoke, getDataDrivableCommands, getElementWithFocus, getField, getObjectCustomClassName, getProxy, getScriptCommandAnchor, getVisualClippedRectangle, getVisualMappableChildren, getVOMSpecificProperty, hasSpecialFrameState, isValidObject, ping, suppressKeyActionpublic EditboxProxy(HtmlTestDomainImplementation domain, IChannel channel, long handle)
public java.lang.String getDescriptiveName()
HtmlProxygetDescriptiveName in class InputProxypublic boolean shouldBeMapped()
ElementProxytrue, because all HTML GUI objects are interesting.shouldBeMapped in class ElementProxyfalsepublic java.lang.String getRole()
TestObjectRole.ROLE_TEXT.public java.lang.String getTestObjectClassName()
HtmlProxygetTestObjectClassName in interface IProxyBasegetTestObjectClassName in class HtmlGuiProxypublic boolean isEditable()
true is returned if the text component is editable.public boolean isReadOnly()
isReadOnly in class InputProxypublic java.lang.String getText()
public void setText(java.lang.String text)
text - The text to update the control with.public boolean isInView()
HtmlGuiProxyisInView in class HtmlGuiProxypublic MethodSpecification getDataDrivableCommand()
null value is returned.getDataDrivableCommand in interface IDataDrivengetDataDrivableCommand in class InputProxyProxyTestObject.getDataDrivableCommands(int)protected void clickAtScreenPoint(MouseModifiers modifiers,
java.awt.Point screenPoint)
clickAtScreenPoint in class HtmlGuiProxymodifiers - -screenPoint - - point in screen coordinatespublic java.lang.String getClearscriptSimpleName()
public void click(MouseModifiers modifiers)
click in class HtmlGuiProxy