@Test @Templates("plain") @UseWithField(field = "positioning", valuesFrom = FROM_ENUM, value = "") public void testJointPoint() { Locations l = Utils.getLocations(popupCalendar.getRootElement()); testJointPoint( l.getWidth(), l.getHeight(), new ShowElementAndReturnAction() { @Override public WebElement perform() { return popupCalendar.openPopup().getRoot(); } }); }
public void testJointPoint() { updateDropDownMenuInvoker(); getCurrentMenu().advanced().show(page.getTarget1()); Locations l = Utils.getLocations(page.getFileMenu()); testJointPoint( l.getWidth(), l.getHeight(), new ShowElementAndReturnAction() { @Override public WebElement perform() { getCurrentMenu().advanced().show(page.getTarget1()); return getCurrentMenu().advanced().getMenuPopup(); } }); }
@Test(groups = "smoke") @Templates("plain") @RegressionTest("https://issues.jboss.org/browse/RF-10218") @UseWithField(field = "positioning", valuesFrom = FROM_ENUM, value = "") public void testJointPoint() { openMenu(); Locations l = Utils.getLocations(group); testJointPoint( l.getWidth(), l.getHeight(), new ShowElementAndReturnAction() { @Override public WebElement perform() { openMenuAndSubMenu(); return groupList; } }); }
/** * Asserts that elements locations and some other locations are equal with some allowed tolerance. */ public static void tolerantAssertLocationsEquals( WebElement element, Locations l2, int xTolerance, int yTolerance, String message) { tolerantAssertLocationsEquals(Utils.getLocations(element), l2, xTolerance, yTolerance, message); }