Project

General

Profile

Download (1.73 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
 * Copyright (C) 2009 EDIT
4
 * European Distributed Institute of Taxonomy
5
 * http://www.e-taxonomy.eu
6
 *
7
 * The contents of this file are subject to the Mozilla Public License Version 1.1
8
 * See LICENSE.TXT at the top of this package for the full license terms.
9
 */
10
package eu.etaxonomy.dataportal.selenium.tests.cyprus;
11

    
12
import org.junit.Assert;
13
import org.junit.Ignore;
14
import org.junit.Test;
15
import org.openqa.selenium.By;
16
import org.openqa.selenium.WebElement;
17

    
18
import eu.etaxonomy.dataportal.DataPortalContext;
19
import eu.etaxonomy.dataportal.junit.CdmDataPortalTestBase;
20
import eu.etaxonomy.dataportal.junit.DataPortalContextSuite.DataPortalContexts;
21

    
22
/**
23
 * @author a.kohlbecker
24
 *
25
 */
26

    
27
@DataPortalContexts( { DataPortalContext.cyprus })
28
public class CyprusSearchTest extends CdmDataPortalTestBase{
29

    
30
	/**
31
	 * see http://dev.e-taxonomy.eu/trac/ticket/2350
32
	 */
33
	@Test
34
	@Ignore
35
	public void searchResultsWithoutAnnotationFootnotes(){
36
		driver.get(getBaseUrl() + "?query=Genis*&search[tree]=0c2b5d25-7b15-4401-8b51-dd4be0ee5cab&q=cdm_dataportal%2Fsearch%2Ftaxon&search[pageSize]=25&search[pageNumber]=0&search[doTaxa]=1&search[doSynonyms]=1&search[doTaxaByCommonNames]=0");
37

    
38
		// --- This variant is slower in FF that using the full xpath
39
		//		WebElement container = driver.findElement(By.id("squeeze"));
40
		//		RenderedWebElement element = (RenderedWebElement)container.findElement(By.xpath("div/div/ul/li/span[contains(@class, 'footnote-key')]"));
41

    
42
		// --- using the full xpath
43
		WebElement element = driver.findElement(By.xpath("/html/body/div/div/div[2]/div[2]/div/div/div/ul/li/span[contains(@class, 'footnote-key')]"));
44
		Assert.assertNull("result set entries must not have footnote keys", element);
45
	}
46

    
47
}
(2-2/4)