@Test public void testPerformShouldDelegateWithOffsetFromElementTopLeft() { final AbsolutePointAction pointAction = mock(AbsolutePointAction.class); new OffsetAction(x, y, pointAction).perform(element); then(pointAction).should().perform(expectedPoint); }
@Override public void perform(final WebElement target) { delegate.perform(target.getLocation().moveBy(offset.x, offset.y)); }
OffsetAction implements Action { @Override public void perform(final WebElement target) { delegate.perform(target.getLocation().moveBy(offset.x, offset.y)); } }
OffsetAction implements Action { @Override public void perform(final WebElement target) { delegate.perform(target.getLocation().moveBy(offset.x, offset.y)); } OffsetAction(final int x, final int y, final AbsolutePointAction delegate); }
OffsetAction implements Action { @Override public void perform(final WebElement target) { delegate.perform(target.getLocation().moveBy(offset.x, offset.y)); } OffsetAction(final int x, final int y, final AbsolutePointAction delegate); @Override void perform(final WebElement target); }
OffsetAction implements Action { @Override public void perform(final WebElement target) { delegate.perform(target.getLocation().moveBy(offset.x, offset.y)); } OffsetAction(final int x, final int y, final AbsolutePointAction delegate); @Override void perform(final WebElement target);  }