use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingPopupMenu method click.
/**
* Click pop-up element
* @throws VerificationException if the element doesn't exist
*/
@PublicAtsApi
public void click() {
new SwingElementState(this).waitToBecomeExisting();
((JPopupMenuFixture) SwingElementLocator.findFixture(this)).click();
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class RealHtmlTextBox method appendValue.
/**
* Append text to the current content of a Text Box
*
* @param value
*/
@PublicAtsApi
public void appendValue(String value) {
new RealHtmlElementState(this).waitToBecomeExisting();
WebElement element = RealHtmlElementLocator.findElement(this);
element.sendKeys(value);
UiEngineUtilities.sleep();
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class MobileCheckBox method unCheck.
/**
* Uncheck the check box
*/
@Override
@PublicAtsApi
public void unCheck() {
new MobileElementState(this).waitToBecomeExisting();
try {
WebElement checkboxElement = MobileElementFinder.findElement(appiumDriver, this);
if (checkboxElement.isSelected()) {
if (appiumDriver instanceof AndroidDriver) {
// checkboxElement.click(); // throwing exception (on Android) with message: Element is not clickable at point (x,y). Other element would receive the click
new Actions(appiumDriver).moveToElement(checkboxElement).click().perform();
} else {
checkboxElement.click();
}
}
} catch (Exception se) {
throw new MobileOperationException(this, "unCheck", se);
}
UiEngineUtilities.sleep();
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingPopupMenu method clickMenuItemByName.
/**
* Click {@link MenuItem} pop-up element by its 'name' attribute value
*
* @param menuItemName {@link MenuItem} name attribute value
*/
@PublicAtsApi
public void clickMenuItemByName(String menuItemName) {
new SwingElementState(this).waitToBecomeExisting();
((JPopupMenuFixture) SwingElementLocator.findFixture(this)).menuItem(menuItemName).click();
}
use of com.axway.ats.common.PublicAtsApi in project ats-framework by Axway.
the class SwingRadioButton method select.
/**
* Select radio button
*
* @throws VerificationException if the element doesn't exist
*/
@PublicAtsApi
public void select() {
new SwingElementState(this).waitToBecomeExisting();
((JRadioButtonFixture) SwingElementLocator.findFixture(this)).check();
}
Aggregations