tis-2017/Pirogova/src/test/java/page/AboutCompanyPage.java
NatashaPirogova 19f429376e END
2018-05-10 10:00:51 +04:00

23 lines
672 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
}
}