Search in sources :

Example 1 with Form

use of org.activityinfo.test.pageobject.web.components.Form in project activityinfo by bedatadriven.

the class UiApplicationDriver method createForm.

@Override
protected void createForm(TestObject form) throws Exception {
    ensureLoggedIn();
    String database = aliasTable.getAlias(form.getString("database"));
    String name = aliasTable.createAlias(form.getString("name"));
    DesignPage design = applicationPage.navigateToDesignTab().selectDatabase(database).design();
    GxtModal modal = design.newBetaForm();
    Form modalForm = modal.form();
    modalForm.fillTextField(I18N.CONSTANTS.name(), name);
    modalForm.select(I18N.CONSTANTS.published(), I18N.CONSTANTS.notPublished());
    modal.accept(I18N.CONSTANTS.save());
}
Also used : Form(org.activityinfo.test.pageobject.web.components.Form) GxtModal(org.activityinfo.test.pageobject.gxt.GxtModal)

Example 2 with Form

use of org.activityinfo.test.pageobject.web.components.Form in project activityinfo by bedatadriven.

the class DatabasesPage method rename.

public DatabasesPage rename(String oldName, String newName, String newDescription) {
    grid().clickCell(oldName);
    buttonClick(I18N.CONSTANTS.renameDatabase());
    GxtModal modal = new GxtModal(container);
    Form form = modal.form();
    form.findFieldByLabel(I18N.CONSTANTS.name()).fill(newName);
    form.findFieldByLabel(I18N.CONSTANTS.description()).fill(newDescription);
    modal.accept();
    return this;
}
Also used : Form(org.activityinfo.test.pageobject.web.components.Form) GxtModal(org.activityinfo.test.pageobject.gxt.GxtModal)

Aggregations

GxtModal (org.activityinfo.test.pageobject.gxt.GxtModal)2 Form (org.activityinfo.test.pageobject.web.components.Form)2