use of com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState in project ats-framework by Axway.
the class HiddenHtmlButton method clickAndDownloadFile.
/**
* Click button and download file
*/
@PublicAtsApi
public void clickAndDownloadFile() {
new HiddenHtmlElementState(this).waitToBecomeExisting();
new HiddenHtmlElement(uiDriver, new UiElementProperties().addProperty("xpath", properties.getInternalProperty(HtmlElementLocatorBuilder.PROPERTY_ELEMENT_LOCATOR))).clickAndDownloadFile();
UiEngineUtilities.sleep();
}
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();
}
Aggregations