protected static class ListView.SapSelectable_m_SelectList extends AbstractListSelectable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_NAME_M_SELECTLIST |
static java.lang.String |
CLASS_NAME_SAS_HC_SELECTLIST |
static java.lang.String[] |
supportedClazzes |
contentObjects, DEFAULT_WAIT_TIMEparent| Constructor and Description |
|---|
SapSelectable_m_SelectList(Component component) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clickElement(Element element,
org.openqa.selenium.Keys key,
java.awt.Point offset,
int mouseButtonNumber,
int numberOfClick)
Try to get the Selenium WebElement object from parameter 'element', then click that WebElement object.
After calling this method, the parent of Element may become stale. |
Item[] |
getContent()
Try to get the cached content according to the WebElement.
If no cached content can be found, then get the real-time content by calling AbstractSelectable.getCacheableContent(),and put the content in the cache and return it. If subclass doesn't need this functionality, then just override this method. If subclass needs this functionality, then override method AbstractSelectable.getCacheableContent() |
java.lang.String[] |
getSupportedClassNames() |
protected void |
verifyItemSelected(Element element)
Note:In subclass, we need to update the 'selected' property of Element.
Please call AbstractSelectable.waitAndVerifyItemSelected(Element) instead to verify selection,as the first method will also try the wait for element to be ready and call EmbeddedObject.refresh(boolean). |
activateItem, convertToItem, getMatchedElement, getMatchedItem, selectItem, verifyItemSelectionactivateItem, clearCache, getCacheableContent, selectItem, showOnPage, verifyContains, verifyItemSelection, verifyItemSelection, waitAndVerifyItemSelected, waitElementReady, waitElementReadyisShowOnPage, isSupported, refresh, webelementclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivateItem, selectItem, verifyContains, verifyItemSelectionclearCachepublic static final java.lang.String CLASS_NAME_M_SELECTLIST
public static final java.lang.String CLASS_NAME_SAS_HC_SELECTLIST
public static final java.lang.String[] supportedClazzes
public SapSelectable_m_SelectList(Component component) throws SeleniumPlusException
SeleniumPlusExceptionpublic java.lang.String[] getSupportedClassNames()
protected void clickElement(Element element, org.openqa.selenium.Keys key, java.awt.Point offset, int mouseButtonNumber, int numberOfClick) throws SeleniumPlusException
AbstractSelectableEmbeddedObject.refresh(boolean).AbstractSelectable.waitAndVerifyItemSelected(Element)AbstractSelectable.verifyItemSelected(Element), as the first method will also try the wait for elementEmbeddedObject.refresh(boolean).clickElement in class AbstractSelectableelement - Element, the element to selectkey - org.openqa.selenium.Keys, it is the key to press during selection.Keys.SHIFT, or Keys.CONTROL.offset - Point, the position relative to the up-left corner to click atmouseButtonNumber - int, the mouse-button-number representing right, middle, or left button.
it can be WDLibrary.MOUSE_BUTTON_LEFT or WDLibrary.MOUSE_BUTTON_RIGHTWDLibrary.MOUSE_BUTTON_MIDDLE.numberOfClick - int, 1 means single-click, 2 means double-clickSeleniumPlusException#refresh(boolean)},
AbstractSelectable.waitAndVerifyItemSelected(Element)public Item[] getContent() throws SeleniumPlusException
AbstractSelectableAbstractSelectable.getCacheableContent(),AbstractSelectable.getCacheableContent()getContent in interface IListSelectablegetContent in interface ISelectablegetContent in class AbstractListSelectableSeleniumPlusExceptionAbstractSelectable.getCacheableContent()protected void verifyItemSelected(Element element) throws SeleniumPlusException
AbstractSelectableAbstractSelectable.waitAndVerifyItemSelected(Element) instead to verify selection,EmbeddedObject.refresh(boolean).verifyItemSelected in class AbstractListSelectableelement - Element, the element to verify that it is selected.SeleniumPlusExceptionCopyright © SAS Institute. All Rights Reserved.