1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package org.xwiki.appwithinminutes.test.po

File ApplicationEditPage.java

 

Coverage histogram

../../../../../img/srcFileCovDistChart10.png
0% of files have more coverage

Code metrics

0
2
2
1
65
25
2
1
1
2
1

Classes

Class Line # Actions
ApplicationEditPage 33 2 0% 2 0
1.0100%
 

Contributing tests

This file is covered by 20 tests. .

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package org.xwiki.appwithinminutes.test.po;
21   
22    import org.openqa.selenium.WebElement;
23    import org.openqa.selenium.support.FindBy;
24    import org.xwiki.test.ui.po.InlinePage;
25   
26    /**
27    * Represents some custom actions available on application pages in inline edit mode, since the default save and view
28    * and save and continue buttons are overridden in AWM.
29    *
30    * @version $Id: 80d2a82da897a6e3b8237a99aa6d0b40c9c9700b $
31    * @since 7.4M2
32    */
 
33    public class ApplicationEditPage extends InlinePage
34    {
35    @FindBy(id = "wizard-next")
36    protected WebElement nextStepButton;
37   
38    @FindBy(xpath = "//a[. = 'Previous Step']")
39    protected WebElement previousStepButton;
40   
41    /**
42    * The form used to edit the application class overwrites the save button because it needs to process the submitted
43    * data. Otherwise the request is forwarded by the action filter to the save action.
44    */
45    @FindBy(name = "xaction_save")
46    private WebElement saveButton;
47   
48    /**
49    * @see #saveButton
50    */
51    @FindBy(name = "xaction_saveandcontinue")
52    private WebElement saveAndContinueButton;
53   
 
54  26 toggle @Override
55    public WebElement getSaveAndViewButton()
56    {
57  26 return saveButton;
58    }
59   
 
60  9 toggle @Override
61    public WebElement getSaveAndContinueButton()
62    {
63  9 return saveAndContinueButton;
64    }
65    }