use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class OpenstackCloud method testConnection.
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 SubversionCredentialUserPwd method setUsername.
public void setUsername(String username) {
switchToPopupHandle();
Control userField = control(by.input(INPUT_USERNAME));
userField.set(username);
switchToParentHandle();
}
use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class MailerGlobalConfig method sendTestMail.
public void sendTestMail(String recipient) {
control(by.path(getPath() + '/')).check();
// these two controls have weird paths that don't fit well with relative path expression
new Control(getPage(), "/hudson-tasks-Mailer//sendTestMailTo").set(recipient);
new Control(getPage(), "/hudson-tasks-Mailer//validate-button").click();
waitFor(driver, hasContent("Email was successfully sent"), 30);
}
use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class Scriptler method upload.
public Script upload(Resource script) {
visit(url("scriptsettings"));
new Control(injector, by.name("file")).upload(script);
clickButton("Upload");
return new Script(this, script.getName());
}
use of org.jenkinsci.test.acceptance.po.Control in project acceptance-test-harness by jenkinsci.
the class LabelParameter method fillWith.
@Override
public void fillWith(Object v) {
Control control = control("value");
// TODO in some cases the LabelParameter is simple text entry, in others it is a drop down
control.set(v.toString());
}
Aggregations