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

File ExtensionsPage.java

 

Coverage histogram

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

Code metrics

2
14
5
1
92
49
6
0.43
2.8
5
1.2

Classes

Class Line # Actions
ExtensionsPage 31 14 0% 6 1
0.9523809695.2%
 

Contributing tests

This file is covered by 1 test. .

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.repository.test.po;
21   
22    import org.openqa.selenium.WebElement;
23    import org.openqa.selenium.support.FindBy;
24    import org.xwiki.repository.test.po.editor.ExtensionInlinePage;
25    import org.xwiki.test.ui.po.ViewPage;
26   
27    /**
28    * @version $Id: 4e092835a9c685fdda1bbf7a6043ffb8d3a9981d $
29    * @since 4.2M1
30    */
 
31    public class ExtensionsPage extends ViewPage
32    {
33    @FindBy(id = "browseSubmit")
34    private WebElement browseSubmit;
35   
36    @FindBy(id = "searchTextInput")
37    private WebElement searchInput;
38   
39    @FindBy(id = "contributeNameInput")
40    private WebElement contributeNameInput;
41   
42    @FindBy(id = "contributeSubmit")
43    private WebElement contributeSubmit;
44   
45    @FindBy(linkText = "Import")
46    private WebElement contributeImportLink;
47   
48    private ExtensionsLiveTableElement liveTable;
49   
 
50  4 toggle public static ExtensionsPage gotoPage()
51    {
52  4 getUtil().gotoPage("Extension", "WebHome");
53  4 return new ExtensionsPage();
54    }
55   
 
56  5 toggle public ExtensionsLiveTableElement getLiveTable()
57    {
58  5 if (this.liveTable == null) {
59  5 this.liveTable = new ExtensionsLiveTableElement();
60  5 this.liveTable.waitUntilReady();
61   
62    }
63   
64  5 return this.liveTable;
65    }
66   
 
67  1 toggle public ExtensionInlinePage contributeExtension(String extensionName)
68    {
69  1 this.contributeNameInput.clear();
70  1 this.contributeNameInput.sendKeys(extensionName);
71  1 this.contributeSubmit.click();
72   
73  1 return new ExtensionInlinePage();
74    }
75   
 
76  1 toggle public ExtensionImportPage clickImport()
77    {
78  1 this.contributeImportLink.click();
79   
80  1 return new ExtensionImportPage();
81    }
82   
83    /**
84    * @since 8.3RC1
85    */
 
86  2 toggle public ExtensionsPage clickBrowse()
87    {
88  2 this.browseSubmit.click();
89   
90  2 return new ExtensionsPage();
91    }
92    }