tis-2017/Pirogova/src/test/java/page/AboutCompanyPage.java

23 lines
672 B
Java
Raw Normal View History

2018-05-10 10:00:51 +04:00
package page;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class AboutCompanyPage {
WebDriver driver;
@FindBy(xpath = "//*[@id=\"main\"]/div/div[1]/div/div/div/ul/li[2]/a")
private WebElement nextElement;
public void clickNextElement() {
nextElement.click();
}
public AboutCompanyPage(WebDriver driver) {
this.driver = driver;
}
public boolean isPageDisplayAboutCompany() {
return driver.findElement(By.xpath("//div[@class=\"page-title\"]/h1[@title=\"О Компании\"]")).isDisplayed();
}
}