use of org.openqa.selenium.interactions.Actions 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 org.openqa.selenium.interactions.Actions in project ats-framework by Axway.
the class HiddenHtmlElement method mouseOver.
/**
* Simulate mouse over
*/
@Override
@PublicAtsApi
public void mouseOver() {
new HiddenHtmlElementState(this).waitToBecomeExisting();
WebElement element = HiddenHtmlElementLocator.findElement(this);
new Actions(htmlUnitDriver).moveToElement(element).perform();
UiEngineUtilities.sleep();
}
use of org.openqa.selenium.interactions.Actions in project ats-framework by Axway.
the class HiddenHtmlElement method pressEscapeKey.
/**
* Simulate Escape key
*/
@Override
@PublicAtsApi
public void pressEscapeKey() {
new HiddenHtmlElementState(this).waitToBecomeExisting();
WebElement element = HiddenHtmlElementLocator.findElement(this);
new Actions(htmlUnitDriver).sendKeys(element, Keys.ESCAPE).perform();
}
use of org.openqa.selenium.interactions.Actions in project ats-framework by Axway.
the class HiddenHtmlElement method pressSpaceKey.
/**
* Simulate Space key
*/
@Override
@PublicAtsApi
public void pressSpaceKey() {
new HiddenHtmlElementState(this).waitToBecomeExisting();
WebElement element = HiddenHtmlElementLocator.findElement(this);
new Actions(htmlUnitDriver).sendKeys(element, Keys.SPACE).perform();
}
use of org.openqa.selenium.interactions.Actions in project Ebselen by Ardesco.
the class EbselenCore method startSelenium.
/**
* Start the WebDriver Instance
*/
public void startSelenium() {
if (driver != null) {
logger.error("There appears to be an existing driver instance.. Details are: {}", driver);
logger.error("Shutting down existing instance and starting up again...");
stopSelenium(driver);
}
driver = setBrowser(driver);
ebselen = new EbselenCommands(driver);
builder = new Actions(driver);
}
Aggregations