23 lines
672 B
Java
23 lines
672 B
Java
|
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();
|
|||
|
}
|
|||
|
}
|