use of com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState in project ats-framework by Axway.
the class HiddenHtmlCheckBox method check.
/**
* Check the check box
*/
@Override
@PublicAtsApi
public void check() {
new HiddenHtmlElementState(this).waitToBecomeExisting();
HtmlUnitWebElement element = HiddenHtmlElementLocator.findElement(this);
if (!element.isEnabled()) {
throw new UnsupportedOperationException("You may not check a disabled element." + toString());
}
if (!element.isSelected()) {
element.click();
}
UiEngineUtilities.sleep();
}
use of com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState in project ats-framework by Axway.
the class HiddenHtmlFileBrowse method setValue.
/**
* Set the File Select Button value
*
* @param value to set
*/
@Override
@PublicAtsApi
public void setValue(String value) {
new HiddenHtmlElementState(this).waitToBecomeExisting();
setFileInputValue(webDriver, value);
UiEngineUtilities.sleep();
}
use of com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState in project ats-framework by Axway.
the class HiddenHtmlElement method setTextContent.
/**
* Set the content of the element
* @param content the new content
*/
@PublicAtsApi
public void setTextContent(String content) {
new HiddenHtmlElementState(this).waitToBecomeExisting();
WebElement element = HiddenHtmlElementLocator.findElement(this);
new Actions(htmlUnitDriver).sendKeys(element, content).perform();
}
use of com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState in project ats-framework by Axway.
the class HiddenHtmlElement method rightClick.
/**
* Simulate mouse right click action
*/
@Override
@PublicAtsApi
public void rightClick() {
new HiddenHtmlElementState(this).waitToBecomeExisting();
WebElement element = HiddenHtmlElementLocator.findElement(this);
new Actions(htmlUnitDriver).contextClick(element).perform();
}
use of com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState in project ats-framework by Axway.
the class HiddenHtmlElement method click.
/**
* Simulate mouse click action
*/
@Override
@PublicAtsApi
public void click() {
new HiddenHtmlElementState(this).waitToBecomeExisting();
HiddenHtmlElementUtils.mouseClick(HiddenHtmlElementLocator.findElement(this));
}
Aggregations