use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class SecurityDisabler method stopUsingSecurityAndSave.
/**
* Stop using security (if previously used) and save config.
*/
public void stopUsingSecurityAndSave() {
open();
Control use = control("/useSecurity");
if (use.resolve().isSelected()) {
use.click();
control("/Submit").click();
}
}
use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class ForemanSharedNodeCloudPageArea method testConnection.
/**
* Test connection.
* @return ForemanCloudPageArea.
*/
public FormValidation testConnection() {
Control button = control("validate-button");
button.click();
return button.getFormValidation();
}
use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class OpenstackSlaveTemplate method keyPair.
public OpenstackSlaveTemplate keyPair(String name) {
ensureAdvancedOpened();
Control control = control("slaveOptions/keyPairName", "keyPairName");
try {
control.select(name);
} catch (WebDriverException ex) {
control.set(name);
}
return this;
}
use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class SubversionCredential method confirmDialog.
/**
* Confirms and closes the Credential dialog.
*/
public void confirmDialog() {
switchToPopupHandle();
Control buttonOk = control(by.button(BUTTON_OK));
buttonOk.click();
((JavascriptExecutor) driver).executeScript("window.close()");
switchToParentHandle();
}
use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class SubversionCredentialUserPwd method setPassword.
public void setPassword(String password) {
switchToPopupHandle();
Control pwdField = control(by.input(INPUT_PASSWORD));
pwdField.set(password);
switchToParentHandle();
}
Aggregations