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:glefevre@nuxeo.com">Gildas</a> 016 */ 017package org.nuxeo.functionaltests.pages.tabs; 018 019import org.nuxeo.functionaltests.Required; 020import org.nuxeo.functionaltests.pages.AbstractPage; 021import org.openqa.selenium.WebDriver; 022import org.openqa.selenium.WebElement; 023import org.openqa.selenium.support.FindBy; 024 025/** 026 * The Nuxeo summary tab of a note document. 027 * 028 * @since 5.9.4 029 */ 030public class NoteSummaryTabSubPage extends AbstractPage { 031 032 @Required 033 @FindBy(xpath = "//div[@class=\"content_block\"]//td[@class=\"fieldColumn\"]") 034 WebElement mainContentViewField; 035 036 @FindBy(xpath = "//div[@class=\"textBlock note_content_block\"]") 037 WebElement textBlockViewField; 038 039 /** 040 * @param driver 041 */ 042 public NoteSummaryTabSubPage(WebDriver driver) { 043 super(driver); 044 } 045 046 public String getMainContentFileText() { 047 return mainContentViewField.getText(); 048 } 049 050 public String getTextBlockContentText() { 051 return textBlockViewField.getText(); 052 } 053 054 public WebElement getTextBlockViewField() { 055 return textBlockViewField; 056 } 057}