2018-11-19 16:30:54 +04:00

37 lines
972 B
Java

package ru.oriflame.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class AnotherLinks {
public WebDriver driver;
public AnotherLinks(WebDriver driver) {
PageFactory.initElements(driver, this);
this.driver = driver;
}
@FindBy(className = "shipping-info-link")
private WebElement delivery;
@FindBy(linkText = "Контакты Сервисных Центров Орифлэйм")
private WebElement contactsServicesCenters;
@FindBy(css = "nav.w-grid > div:nth-child(1) > div:nth-child(1) > a:nth-child(1)")
private WebElement oriLogo;
public void deliveryClicking () {
delivery.click();
}
public void clickingContactsServicesCenters() {
contactsServicesCenters.click();
}
public void clickingOrifalemLogo() {
oriLogo.click();
}
}