22
33import org .labkey .test .Locator ;
44import org .labkey .test .WebDriverWrapper ;
5- import org .labkey .test .components .ext4 .ComboBox ;
65import org .openqa .selenium .WebDriver ;
76import org .openqa .selenium .WebElement ;
87import org .openqa .selenium .support .ui .ExpectedConditions ;
@@ -22,49 +21,6 @@ public static ComplianceLoginSettingsPage beginAt(WebDriverWrapper webDriverWrap
2221 return new ComplianceLoginSettingsPage (webDriverWrapper .getDriver ());
2322 }
2423
25-
26- public void enableLoginControls ()
27- {
28- checkCheckbox (elementCache ().enableLoginChk );
29- shortWait ().until (wd -> elementCache ().loginAttemptCountCombo .isEnabled ());
30- }
31-
32- public void disableLoginControls ()
33- {
34- uncheckCheckbox (elementCache ().enableLoginChk );
35- shortWait ().until (wd -> !elementCache ().loginAttemptCountCombo .isEnabled ());
36- }
37-
38- public void setLoginAttemptCount (String count )
39- {
40- setFormElement (elementCache ().loginAttemptCountInput , count );
41- }
42-
43- public void selectLoginAttemptCount (String count )
44- {
45- elementCache ().loginAttemptCountCombo .selectComboBoxItem (count );
46- }
47-
48- public void selectLoginAttemptPeriod (String period )
49- {
50- elementCache ().loginAttemptPeriodCombo .selectComboBoxItem (period );
51- }
52-
53- public void selectLoginAttemptRecoveryTime (String time )
54- {
55- elementCache ().loginAttemptRecoveryTimeCombo .selectComboBoxItem (time );
56- }
57-
58- public void setLoginAttemptRecoveryTime (String time )
59- {
60- setFormElement (elementCache ().loginAttemptRecoveryTimeInput , time );
61- }
62-
63- public void setLoginAttemptPeriod (String time )
64- {
65- setFormElement (elementCache ().loginAttemptPeriodInput , time );
66- }
67-
6824 public void enableFicamProviders ()
6925 {
7026 checkCheckbox (elementCache ().acceptOnlyFicamChk );
@@ -105,16 +61,7 @@ protected ElementCache newElementCache()
10561
10662 protected class ElementCache extends BaseComplianceSettingsPage <ElementCache >.ElementCache
10763 {
108- final WebElement enableLoginChk = Locator .checkboxById ("enableLogin" ).findWhenNeeded (this );
109- final ComboBox loginAttemptCountCombo = new ComboBox .ComboBoxFinder (getDriver ()).locatedBy (Locator .tagWithId ("span" , "loginAttemptCount" )).findWhenNeeded (this );
110- final ComboBox loginAttemptPeriodCombo = new ComboBox .ComboBoxFinder (getDriver ()).locatedBy (Locator .tagWithId ("span" , "loginAttemptPeriod" )).findWhenNeeded (this );
111- final ComboBox loginAttemptRecoveryTimeCombo = new ComboBox .ComboBoxFinder (getDriver ()).locatedBy (Locator .tagWithId ("span" , "loginAttemptRecoveryTime" )).findWhenNeeded (this );
112- final WebElement loginAttemptCountInput = Locator .input ("attemptLimit" ).findWhenNeeded (this );
113- final WebElement loginAttemptPeriodInput = Locator .input ("attemptPeriod" ).findWhenNeeded (this );
114- final WebElement loginAttemptRecoveryTimeInput = Locator .input ("resetTime" ).findWhenNeeded (this );
115-
11664 final WebElement acceptOnlyFicamChk = Locator .checkboxById ("acceptOnlyFICAMProviders" ).findWhenNeeded (this );
11765 final WebElement ficamProvidersDiv = Locator .tagWithId ("div" , "FICAMProviders" ).findWhenNeeded (this );
118-
11966 }
12067}
0 commit comments