/* * See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this software; if not, write to the Free * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA * 02110-1301 USA, or see the FSF site: http://www.fsf.org. */ package org.xwiki.appwithinminutes.test.po; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.xwiki.test.ui.po.InlinePage; /** * Represents some custom actions available on application pages in inline edit mode, since the default save and view * and save and continue buttons are overridden in AWM. * * @version $Id: 80d2a82da897a6e3b8237a99aa6d0b40c9c9700b $ * @since 7.4M2 */ public class ApplicationEditPage extends InlinePage { @FindBy(id = "wizard-next") protected WebElement nextStepButton; @FindBy(xpath = "//a[. = 'Previous Step']") protected WebElement previousStepButton; /** * The form used to edit the application class overwrites the save button because it needs to process the submitted * data. Otherwise the request is forwarded by the action filter to the save action. */ @FindBy(name = "xaction_save") private WebElement saveButton; /** * @see #saveButton */ @FindBy(name = "xaction_saveandcontinue") private WebElement saveAndContinueButton; @Override public WebElement getSaveAndViewButton() { return saveButton; } @Override public WebElement getSaveAndContinueButton() { return saveAndContinueButton; } }