public class WPFComboBox extends WPFSelector
Certain combo boxes (i.e. ones that use an items source internally) require to open the combo box once before the items are available in the application under test.
Modifier | Constructor and Description |
---|---|
protected |
WPFComboBox(JtfObjectHandle handle,
Desktop desktop)
Creates a new WPFComboBox with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the ComboBox.
|
double |
getMaxDropDownHeight()
Gets the maximum height for a combo box drop-down.
|
WPFComboBoxItem |
getSelectedItem()
Gets the first item in the current selection or returns null if the selection is empty.
|
String |
getText()
Gets the text of the ComboBox.
|
boolean |
isDropDownOpen()
Gets a value that indicates whether the drop-down for a combo box is currently open.
|
boolean |
isEditable()
Gets a value that enables or disables editing of the text in text box of the ComboBox.
|
boolean |
isReadOnly()
Gets whether the combo box is in selection-only mode, in which the contents of the combo box are selectable but not editable.
|
boolean |
isStaysOpenOnEdit()
Gets whether a ComboBox that is open and displays a drop-down control will remain open when a user clicks the TextBox.
|
void |
open()
Opens the ComboBox.
|
getSelectedIndex, getSelectedItemText, select, select, select, select, select, select
getItems, getItemTexts, hasItems, isTextSearchEnabled
getFontFamily, getFontSize, getTabIndex, isTabStop
getActualHeight, getActualWidth, getMaximumScrollPosition, getName, getScrollPosition, pointFromScreen, pointToScreen, scroll, scrollToPosition
bringIntoView, click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getToolTip, isEnabled, isFocused, mouseMove, mouseMove, openContextMenu, openContextMenu, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, openContextMenuSelect, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setFocus, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected WPFComboBox(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the WPFComboBoxdesktop
- the desktop on which this object livespublic void close()
public void open()
public boolean isDropDownOpen()
public boolean isEditable()
public boolean isReadOnly()
public double getMaxDropDownHeight()
public WPFComboBoxItem getSelectedItem()
getSelectedItem
in class WPFSelector
public boolean isStaysOpenOnEdit()
public String getText()
getText
in class TestObject
Copyright 2009-2012 Micro Focus. All Rights Reserved.