bug3529 Added method to click url configuration image action to

LeaderboardConfigurationPanelPO
This commit is contained in:
Benjamin Barth committed 2017-03-21 18:34:32 +01:00
1 parent 58073ef828
commit a72d6e84a4
1 file changed
+9
@@ -12,12 +12,16 @@ import com.sap.sailing.selenium.core.FindBy;
import com.sap.sailing.selenium.pages.PageArea; import com.sap.sailing.selenium.pages.PageArea;
import com.sap.sailing.selenium.pages.adminconsole.ActionsHelper; import com.sap.sailing.selenium.pages.adminconsole.ActionsHelper;
import com.sap.sailing.selenium.pages.adminconsole.regatta.RegattaListCompositePO.RegattaDescriptor; import com.sap.sailing.selenium.pages.adminconsole.regatta.RegattaListCompositePO.RegattaDescriptor;
import com.sap.sailing.selenium.pages.common.SettingsDialogPO;
import com.sap.sailing.selenium.pages.gwt.CellTablePO; import com.sap.sailing.selenium.pages.gwt.CellTablePO;
import com.sap.sailing.selenium.pages.gwt.DataEntryPO; import com.sap.sailing.selenium.pages.gwt.DataEntryPO;
import com.sap.sailing.selenium.pages.gwt.GenericCellTablePO; import com.sap.sailing.selenium.pages.gwt.GenericCellTablePO;
public class LeaderboardConfigurationPanelPO extends PageArea { public class LeaderboardConfigurationPanelPO extends PageArea {
public static class LeaderboardEntryPO extends DataEntryPO { public static class LeaderboardEntryPO extends DataEntryPO {
private static final String ACTION_NAME_CONFIGURE_URL = "ACTION_CONFIGURE_URL";
public LeaderboardEntryPO(CellTablePO<?> table, WebElement element) { public LeaderboardEntryPO(CellTablePO<?> table, WebElement element) {
super(table, element); super(table, element);
} }
@@ -39,6 +43,11 @@ public class LeaderboardConfigurationPanelPO extends PageArea {
WebElement link = this.context.findElement(By.xpath(".//td/div/a")); WebElement link = this.context.findElement(By.xpath(".//td/div/a"));
return link.getAttribute("href"); return link.getAttribute("href");
} }
public SettingsDialogPO getLeaderboardPageUrlConfigurationDialog() {
clickActionImage(ACTION_NAME_CONFIGURE_URL);
return getPO(SettingsDialogPO::new, "LeaderboardPageUrlConfigurationDialog");
}
} }
@FindBy(how = BySeleniumId.class, using = "CreateFlexibleLeaderboardButton") @FindBy(how = BySeleniumId.class, using = "CreateFlexibleLeaderboardButton")