Code simplifications

This commit is contained in:
Steffen Schaefer committed 2017-03-28 16:52:12 +02:00
1 parent 41c0281cd5
commit b768b3e2d6
1 file changed
+1 -2
@@ -56,8 +56,7 @@ public class RegattaDetailsCompositePO extends PageArea {
if (entry != null) {
WebElement action = ActionsHelper.findEditAction(entry.getWebElement());
action.click();
WebElement dialog = findElementBySeleniumId(this.driver, "SeriesEditDialog");
return new SeriesEditDialogPO(this.driver, dialog);
return getPO(SeriesEditDialogPO::new, "SeriesEditDialog");
}
return null;
}