mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-30 01:16:40 +00:00
Added page object for races table in leaderboard details panel
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
package com.sap.sailing.selenium.pages.adminconsole.leaderboard;
|
||||
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
|
||||
import com.sap.sailing.selenium.pages.adminconsole.ActionsHelper;
|
||||
import com.sap.sailing.selenium.pages.adminconsole.leaderboard.LeaderboardRacesTablePO.RaceEntryPO;
|
||||
import com.sap.sailing.selenium.pages.gwt.CellTablePO;
|
||||
import com.sap.sailing.selenium.pages.gwt.DataEntryPO;
|
||||
|
||||
public class LeaderboardRacesTablePO extends CellTablePO<RaceEntryPO> {
|
||||
|
||||
public static class RaceEntryPO extends DataEntryPO {
|
||||
|
||||
private RaceEntryPO(CellTablePO<?> table, WebElement element) {
|
||||
super(table, element);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getIdentifier() {
|
||||
return getColumnContent("Race");
|
||||
}
|
||||
|
||||
public SetStartTimeDialogPO clickSetStartTime() {
|
||||
ActionsHelper.findSetStartTimeAction(getWebElement()).click();
|
||||
return getPO(SetStartTimeDialogPO::new, "SetStartTimeDialog");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public LeaderboardRacesTablePO(WebDriver driver, WebElement element) {
|
||||
super(driver, element);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected RaceEntryPO createDataEntry(WebElement element) {
|
||||
return new RaceEntryPO(this, element);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user