use of org.openqa.selenium.interactions.Actions in project charts by vaadin.
the class AbstractPointClickCoordinatesTest method clickPoint.
protected void clickPoint() {
VerticalLayoutElement layout = $(VerticalLayoutElement.class).first();
new Actions(driver).moveToElement(layout, expectedPointX, expectedPointY).click().build().perform();
waitForVaadin();
}
use of org.openqa.selenium.interactions.Actions in project charts by vaadin.
the class AbstractPointClickCoordinatesTest method clickChart.
private void clickChart() {
WebElement chart = findElement(By.className("vaadin-chart"));
new Actions(driver).moveToElement(chart, expectedChartX, expectedChartY).click().build().perform();
waitForVaadin();
}
use of org.openqa.selenium.interactions.Actions in project charts by vaadin.
the class MasterDetailTBTest method test.
@Test
public void test() throws IOException, AssertionError {
driver.get(getTestUrl());
waitForVaadin();
captureAndCompare("before");
WebElement findElement = driver.findElement(By.id("master-chart"));
Action click = new Actions(driver).moveToElement(findElement, 150, 40).clickAndHold().moveByOffset(100, 0).release().build();
click.perform();
waitForVaadin();
captureAndCompare("after");
}
use of org.openqa.selenium.interactions.Actions in project charts by vaadin.
the class MultipleAxesWithResetZoomTBTest method zoomChart.
private void zoomChart() {
List<WebElement> points = driver.findElements(By.cssSelector(".highcharts-series > rect"));
Actions builder = new Actions(driver);
Action dragAndDrop = builder.clickAndHold(points.get(3)).moveToElement(points.get(9)).release(points.get(9)).build();
dragAndDrop.perform();
}
use of org.openqa.selenium.interactions.Actions in project charts by vaadin.
the class PieChartTBTest method testCustomStuff.
@Override
protected void testCustomStuff() {
super.testCustomStuff();
// Ensure animation has finished before clicking
waitForVaadin();
WebElement firstSeriesPoint = driver.findElement(By.cssSelector(".highcharts-series > path"));
Action click = new Actions(driver).moveToElement(firstSeriesPoint).click().build();
click.perform();
waitForVaadin();
boolean containsFirefox = driver.findElement(By.className("v-Notification")).getText().contains("Firefox");
Assert.assertTrue(containsFirefox);
}
Aggregations