/* * 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.wysiwyg.test.po; import org.openqa.selenium.By; import org.xwiki.test.ui.po.BaseElement; /** * Models a wizard step used by the WYSIWYG content editor. * * @version $Id: 18ccf3dc583da2970cc047b3284088a8d8a13f47 $ * @since 3.2M3 */ public class WizardStepElement extends BaseElement { /** * Waits for this wizard step to load. * * @return a reference to this wizard step for easy method chaining */ public WizardStepElement waitToLoad() { getDriver().waitUntilElementIsVisible(By .xpath("//div[contains(@class, 'xDialogBody') and not(contains(@class, 'loading'))]")); return this; } }