mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
added selenium PageArea for adminconsole/advanced/LocalServer
This commit is contained in:
1 parent
610894ed65
commit
4bb50ad530
1 file changed
+25
+25
@@ -0,0 +1,25 @@
|
||||
package com.sap.sailing.selenium.pages.adminconsole.advanced;
|
||||
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.WebElement;
|
||||
|
||||
import com.sap.sailing.selenium.core.BySeleniumId;
|
||||
import com.sap.sailing.selenium.core.FindBy;
|
||||
import com.sap.sailing.selenium.pages.PageArea;
|
||||
|
||||
public class LocalServerPO extends PageArea {
|
||||
|
||||
public LocalServerPO(WebDriver driver, WebElement element) {
|
||||
super(driver, element);
|
||||
}
|
||||
|
||||
@FindBy(how = BySeleniumId.class, using = "isSelfServiceServerCheckbox")
|
||||
private WebElement isSelfServiceServerCheckbox;
|
||||
|
||||
public void setSelfServiceServer(boolean selfService) {
|
||||
if (selfService != isSelfServiceServerCheckbox.isSelected()) {
|
||||
isSelfServiceServerCheckbox.click();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user