@@ -78,7 +78,7 @@ boolean compareText(String expectedValue, String actualValue) {
78
78
}
79
79
80
80
public static ExpectedCondition <String > elementTextToEqual (final By locator , final String value ) {
81
- return new ExpectedCondition <>() {
81
+ return new ExpectedCondition <String >() {
82
82
83
83
@ Override
84
84
public String apply (WebDriver driver ) {
@@ -121,7 +121,7 @@ public String toString() {
121
121
}
122
122
123
123
public static ExpectedCondition <String > pageSourceToContain (final String expectedText ) {
124
- return new ExpectedCondition <>() {
124
+ return new ExpectedCondition <String >() {
125
125
@ Override
126
126
public String apply (WebDriver driver ) {
127
127
String source = driver .getPageSource ();
@@ -141,7 +141,7 @@ public String toString() {
141
141
142
142
public static ExpectedCondition <Point > elementLocationToBe (
143
143
final WebElement element , final Point expectedLocation ) {
144
- return new ExpectedCondition <>() {
144
+ return new ExpectedCondition <String >() {
145
145
private Point currentLocation = new Point (0 , 0 );
146
146
147
147
@ Override
@@ -181,7 +181,7 @@ public static ExpectedCondition<String> newWindowIsOpened(final Set<String> orig
181
181
}
182
182
183
183
public static ExpectedCondition <WebDriver > windowToBeSwitchedToWithName (final String windowName ) {
184
- return new ExpectedCondition <>() {
184
+ return new ExpectedCondition <WebDriver >() {
185
185
186
186
@ Override
187
187
public WebDriver apply (WebDriver driver ) {
0 commit comments