public class DomRadioButton extends DomElement
Modifier | Constructor and Description |
---|---|
protected |
DomRadioButton(JtfObjectHandle handle,
Desktop desktop)
使用 JtfObjectHandle 创建新 DomRadioButton。
|
Modifier and Type | Method and Description |
---|---|
int |
getRadioListItemCount()
获取 单选框列表中项目的数量。
|
List<ItemIdentifier> |
getRadioListItems()
获取 单选框列表中项目的列表。
|
int |
getRadioListSelectedIndex()
获取 The index of the selected item.
|
ItemIdentifier |
getRadioListSelectedItem()
获取 The item that is selected in the radiolist.
|
boolean |
isSelected()
获取 是否选择单选按钮。
|
void |
radioListSelect(int itemIndex)
选择单选框列表中的项目。
|
void |
radioListSelect(ItemIdentifier item)
选择单选框列表中的项目。
|
void |
radioListSelect(String itemText)
选择单选框列表中的项目。
|
void |
select()
选择单选按钮。
|
domClick, domClick, domClick, domDoubleClick, domDoubleClick, domDoubleClick, domDoubleClick, domMouseMove, domMouseMove, executeJavaScript, executeJavaScript, getCssStyle, getDomAttribute, getDomAttributeList, getDomAttributeList, getHtmlRect, getText, highlight, scrollIntoView, setDomAttribute, unhighlight
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, isVisible, mouseMove, mouseMove, 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 DomRadioButton(JtfObjectHandle handle, Desktop desktop)
handle
- 可确定 DomRadioButton 的句柄desktop
- 此对象所在的桌面public void radioListSelect(ItemIdentifier item)
在 Silk Test 14.0 或更高版本中,所有受支持的浏览器都修剪列表中的空格。对于某些浏览器版本,此空格的处理不同于 Silk Test 13.5 之前的 Silk Test 版本。您可以通过将 OPT_COMPATIBILITY 选项设为低于 13.5.0 的版本来重新启用旧行为。
item
- 可选择的项目public void radioListSelect(String itemText)
在 Silk Test 14.0 或更高版本中,所有受支持的浏览器都修剪列表中的空格。对于某些浏览器版本,此空格的处理不同于 Silk Test 13.5 之前的 Silk Test 版本。您可以通过将 OPT_COMPATIBILITY 选项设为低于 13.5.0 的版本来重新启用旧行为。
itemText
- 可选择的项目public void radioListSelect(int itemIndex)
在 Silk Test 14.0 或更高版本中,所有受支持的浏览器都修剪列表中的空格。对于某些浏览器版本,此空格的处理不同于 Silk Test 13.5 之前的 Silk Test 版本。您可以通过将 OPT_COMPATIBILITY 选项设为低于 13.5.0 的版本来重新启用旧行为。
itemIndex
- 可选择的项目public void select()
public int getRadioListItemCount()
public List<ItemIdentifier> getRadioListItems()
在 Silk Test 14.0 或更高版本中,所有受支持的浏览器都修剪列表中的空格。对于某些浏览器版本,此空格的处理不同于 Silk Test 13.5 之前的 Silk Test 版本。您可以通过将 OPT_COMPATIBILITY 选项设为低于 13.5.0 的版本来重新启用旧行为。移动 Web 应用程序不支持此属性。
public int getRadioListSelectedIndex()
public ItemIdentifier getRadioListSelectedItem()
public boolean isSelected()
Copyright 2009-2012 Micro Focus. All Rights Reserved.