Revision 14a1655f
Added by Andreas Kohlbecker over 10 years ago
7.x/modules/cdm_dataportal/test/java/dataportal-selenium-tests/src/main/java/eu/etaxonomy/dataportal/pages/GenericPortalPage.java | ||
---|---|---|
10 | 10 |
package eu.etaxonomy.dataportal.pages; |
11 | 11 |
|
12 | 12 |
import java.net.MalformedURLException; |
13 |
import java.sql.PreparedStatement; |
|
14 |
import java.util.List; |
|
15 | 13 |
|
16 |
import org.junit.Assert; |
|
17 | 14 |
import org.openqa.selenium.By; |
18 | 15 |
import org.openqa.selenium.WebDriver; |
19 |
import org.openqa.selenium.WebElement; |
|
20 |
|
|
21 |
import com.google.common.base.Function; |
|
22 | 16 |
|
23 | 17 |
import eu.etaxonomy.dataportal.DataPortalContext; |
24 |
import eu.etaxonomy.dataportal.elements.ClassificationTreeBlock; |
|
25 | 18 |
import eu.etaxonomy.dataportal.selenium.AllTrue; |
26 | 19 |
import eu.etaxonomy.dataportal.selenium.PageTitleValidated; |
27 |
import eu.etaxonomy.dataportal.selenium.UrlLoaded; |
|
28 | 20 |
import eu.etaxonomy.dataportal.selenium.VisibilityOfElementLocated; |
29 | 21 |
|
30 | 22 |
/** |
... | ... | |
69 | 61 |
searchBlockElement.findElement(By.id("edit-query")).sendKeys(query); |
70 | 62 |
searchBlockElement.findElement(By.id("edit-submit")).submit();//Search results |
71 | 63 |
|
72 |
wait.until(new AllTrue(new PageTitleValidated(context.prepareTitle("Search results")), new VisibilityOfElementLocated(By.id("container")))); |
|
64 |
wait.until( |
|
65 |
new AllTrue( |
|
66 |
new PageTitleValidated(context.prepareTitle("Search results")), |
|
67 |
new VisibilityOfElementLocated(By.id("container")) |
|
68 |
) |
|
69 |
); |
|
73 | 70 |
return new TaxonSearchResultPage(driver, context); |
74 | 71 |
} |
75 | 72 |
|
Also available in: Unified diff
adapting test framwork to changes in selenium api