1
|
/**
|
2
|
* Copyright (C) 2019 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.dataportal.elements;
|
10
|
|
11
|
import java.util.Objects;
|
12
|
|
13
|
import org.openqa.selenium.NoSuchElementException;
|
14
|
import org.openqa.selenium.WebElement;
|
15
|
|
16
|
public class RegistrationItemCompact extends RegistrationItem{
|
17
|
|
18
|
/**
|
19
|
* @param containerElement
|
20
|
*/
|
21
|
public RegistrationItemCompact(WebElement containerElement) {
|
22
|
super(containerElement);
|
23
|
if(style != style.COMPACT){
|
24
|
throw new NoSuchElementException("RegistrationItem has not the expected style, expected : FULL, but was " + Objects.toString(style, "NULL"));
|
25
|
}
|
26
|
}
|
27
|
|
28
|
public WebElement getSummaryElement() {
|
29
|
return summaryElement;
|
30
|
}
|
31
|
|
32
|
}
|