-
Notifications
You must be signed in to change notification settings - Fork 188
/
InternalsConfigurationPage.java
58 lines (49 loc) · 1.86 KB
/
InternalsConfigurationPage.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* Copyright (c) 2010-2019 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.schrodinger.page.configuration;
import com.codeborne.selenide.Condition;
import com.codeborne.selenide.SelenideElement;
import com.evolveum.midpoint.schrodinger.MidPoint;
import com.evolveum.midpoint.schrodinger.component.common.TabPanel;
import com.evolveum.midpoint.schrodinger.component.configuration.*;
import com.evolveum.midpoint.schrodinger.page.BasicPage;
import com.evolveum.midpoint.schrodinger.util.Schrodinger;
import static com.codeborne.selenide.Selenide.$;
/**
* Created by Viliam Repan (lazyman).
*/
public class InternalsConfigurationPage extends BasicPage {
public ClockTab clockTab() {
SelenideElement element = findTabPanel().clickTab("PageInternals.tab.clock");
return new ClockTab(this, element);
}
public DebugUtilTab debugUtilTab() {
//todo implement
SelenideElement element = null;
return new DebugUtilTab(this, element);
}
public InternalConfigurationTab internalConfigurationTab() {
//todo implement
SelenideElement element = null;
return new InternalConfigurationTab(this, element);
}
public TracesTab tracesTab() {
//todo implement
SelenideElement element = null;
return new TracesTab(this, element);
}
public CountersTab countersTab() {
//todo implement
SelenideElement element = null;
return new CountersTab(this, element);
}
protected TabPanel findTabPanel() {
SelenideElement tabPanelElement = $(Schrodinger.byDataId("div", "tabPanel"))
.waitUntil(Condition.appear, MidPoint.TIMEOUT_DEFAULT_2_S);
return new TabPanel<>(this, tabPanelElement);
}
}