travis-ci
12 of 12 new or added lines in 2 files covered. (100.0%)
1274 of 1708 relevant lines covered (74.59%)
1.48 hits per line
1 |
package org.fluentlenium.core; |
|
2 |
|
|
3 |
import org.openqa.selenium.WebDriver; |
|
4 |
|
|
5 |
/**
|
|
6 |
* Use the Page Object Pattern to have more resilient tests. |
|
7 |
*/ |
|
8 |
public abstract class FluentPage extends Fluent { |
|
9 |
|
|
10 |
public FluentPage() {
|
|
11 |
super();
|
1 only 137.1 ✔ |
12 |
} |
2✔ |
13 |
|
1 only 137.2 ✔ |
14 |
public FluentPage(WebDriver driver) {
|
|
15 |
super(driver);
|
× |
16 |
} |
× |
17 |
|
× |
18 |
/**
|
|
19 |
* Url of the Page |
|
20 |
* |
|
21 |
* @return page URL |
|
22 |
*/ |
|
23 |
public String getUrl() { |
|
24 |
return null; |
1 only 137.1 ✔ |
25 |
} |
1 only 137.2 ✔ |
26 |
|
1 only 137.2 ✔ |
27 |
/**
|
1 only 137.2 ✔ |
28 |
* Should check if the navigator is on correct page. |
1 only 137.2 ✔ |
29 |
* <p> |
|
30 |
* For example : |
|
31 |
* assertThat(title()).isEqualTo("Page 1"); |
1 only 137.2 ✔ |
32 |
* assertThat("#reallyImportantField").hasSize(1); |
|
33 |
*/ |
|
34 |
public void isAt() { |
|
35 |
} |
× |
36 |
|
|
37 |
/**
|
|
38 |
* Go to the url defined in the page |
|
39 |
*/ |
|
40 |
public final void go() { |
|
41 |
goTo(getUrl()); |
1 only 137.1 ✔ |
42 |
} |
1 only 137.1 ✔ |
43 |
|
|
44 |
|
|
45 |
} |