001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * <a href="mailto:grenard@nuxeo.com">Guillaume Renard</a> 016 * 017 */ 018 019package org.nuxeo.functionaltests.pages.admincenter; 020 021import org.nuxeo.functionaltests.Required; 022import org.nuxeo.functionaltests.pages.workflow.WorkflowGraph; 023import org.openqa.selenium.WebDriver; 024import org.openqa.selenium.WebElement; 025import org.openqa.selenium.support.FindBy; 026 027/** 028 * @since 7.1 029 */ 030public class WorkflowsPage extends AdminCenterBasePage { 031 032 @Required 033 @FindBy(id = "admin_workflow_models") 034 protected WebElement adminWorkflowModelForm; 035 036 @Required 037 @FindBy(linkText = "Parallel document review") 038 protected WebElement parallelDocumentReviewLink; 039 040 @Required 041 @FindBy(linkText = "Serial document review") 042 protected WebElement serialDocumentReviewLink; 043 044 public WorkflowsPage(WebDriver driver) { 045 super(driver); 046 } 047 048 public WorkflowGraph getParallelDocumentReviewGraph() { 049 parallelDocumentReviewLink.click(); 050 return asPage(WorkflowGraph.class); 051 } 052 053 public WorkflowGraph getSerialDocumentReviewGraph() { 054 serialDocumentReviewLink.click(); 055 return asPage(WorkflowGraph.class); 056 } 057 058}