21 lines
459 B
Java
21 lines
459 B
Java
package page.search;
|
|
|
|
import org.openqa.selenium.WebDriver;
|
|
import org.openqa.selenium.WebElement;
|
|
import org.openqa.selenium.support.FindBy;
|
|
|
|
public class SearchByKeywordResultPage {
|
|
WebDriver driver;
|
|
|
|
@FindBy(css = ".news")
|
|
private WebElement newsElement;
|
|
|
|
public SearchByKeywordResultPage(WebDriver driver) {
|
|
this.driver = driver;
|
|
}
|
|
|
|
public boolean isNewsElementPresent() {
|
|
return newsElement.isDisplayed();
|
|
}
|
|
}
|