mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-20 19:20:04 +00:00
bug3529 Added method to click url configuration image action to
LeaderboardConfigurationPanelPO
This commit is contained in:
1 parent
58073ef828
commit
a72d6e84a4
1 file changed
+9
+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.adminconsole.ActionsHelper;
|
||||
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.DataEntryPO;
|
||||
import com.sap.sailing.selenium.pages.gwt.GenericCellTablePO;
|
||||
|
||||
public class LeaderboardConfigurationPanelPO extends PageArea {
|
||||
public static class LeaderboardEntryPO extends DataEntryPO {
|
||||
|
||||
private static final String ACTION_NAME_CONFIGURE_URL = "ACTION_CONFIGURE_URL";
|
||||
|
||||
public LeaderboardEntryPO(CellTablePO<?> table, WebElement element) {
|
||||
super(table, element);
|
||||
}
|
||||
@@ -39,6 +43,11 @@ public class LeaderboardConfigurationPanelPO extends PageArea {
|
||||
WebElement link = this.context.findElement(By.xpath(".//td/div/a"));
|
||||
return link.getAttribute("href");
|
||||
}
|
||||
|
||||
public SettingsDialogPO getLeaderboardPageUrlConfigurationDialog() {
|
||||
clickActionImage(ACTION_NAME_CONFIGURE_URL);
|
||||
return getPO(SettingsDialogPO::new, "LeaderboardPageUrlConfigurationDialog");
|
||||
}
|
||||
}
|
||||
|
||||
@FindBy(how = BySeleniumId.class, using = "CreateFlexibleLeaderboardButton")
|
||||
|
||||
Reference in new issue
Block a user