use of org.openqa.selenium.interactions.Actions in project ORCID-Source by ORCID.
the class BBBUtil method ngAwareClick.
public static void ngAwareClick(WebElement webElement, WebDriver webDriver) {
waitForAngular(webDriver);
Actions actions = new Actions(webDriver);
actions.moveToElement(webElement).perform();
actions.click(webElement).perform();
waitForAngular(webDriver);
}
use of org.openqa.selenium.interactions.Actions in project geode by apache.
the class PulseBase method testDataViewTreeMapPopUpData.
@Test
public void testDataViewTreeMapPopUpData() {
searchByLinkAndClick(CLUSTER_VIEW_LABEL);
searchByLinkAndClick(DATA_DROPDOWN_ID);
WebElement TreeMapMember = getWebDriver().findElement(By.id("GraphTreeMapClusterData-canvas"));
Actions builder = new Actions(getWebDriver());
builder.clickAndHold(TreeMapMember).perform();
String RegionType = getWebDriver().findElement(By.xpath("//div[@id='_tooltip']/div/div/div[2]/div/div[2]/div")).getText();
String regionType = JMXProperties.getInstance().getProperty("region.R2.regionType");
assertEquals(regionType, RegionType);
String EntryCount = getWebDriver().findElement(By.xpath("//div[@id='_tooltip']/div/div/div[2]/div[2]/div[2]/div")).getText();
String entryCount = JMXProperties.getInstance().getProperty("region.R2.systemRegionEntryCount");
assertEquals(entryCount, EntryCount);
String EntrySizetemp = getWebDriver().findElement(By.xpath("//div[@id='_tooltip']/div/div/div[2]/div[3]/div[2]/div")).getText();
float EntrySize = Float.parseFloat(EntrySizetemp);
float entrySize = Float.parseFloat(JMXProperties.getInstance().getProperty("region.R2.entrySize"));
entrySize = entrySize / 1024 / 1024;
entrySize = Float.parseFloat(new DecimalFormat("##.####").format(entrySize));
assertEquals(entrySize, EntrySize, 0.001);
builder.moveToElement(TreeMapMember).release().perform();
}
use of org.openqa.selenium.interactions.Actions in project geode by apache.
the class PulseTestUtils method mouseReleaseById.
public static void mouseReleaseById(String id) {
verifyElementPresentById(id);
Actions action = new Actions(getDriver());
WebElement we = getDriver().findElement(By.id(id));
action.moveToElement(we).release().perform();
}
use of org.openqa.selenium.interactions.Actions in project java.webdriver by sayems.
the class Action method pageDown.
public void pageDown() {
Actions clicker = new Actions(driver);
clicker.sendKeys(Keys.PAGE_DOWN);
}
use of org.openqa.selenium.interactions.Actions in project java.webdriver by sayems.
the class Action method pressShiftAndTab.
// Method to press shift + tab
public void pressShiftAndTab() {
Actions action = new Actions(driver);
action.sendKeys(Keys.chord(Keys.SHIFT), Keys.chord(Keys.TAB)).build().perform();
}
Aggregations