package ru.yandex.autotests.direct.web.pages.representatives.agency;

import org.openqa.selenium.support.FindBy;

import ru.yandex.qatools.allure.webdriver.annotations.NamedUrl;
import ru.yandex.qatools.allure.webdriver.annotations.NamedUrls;
import ru.yandex.qatools.allure.webdriver.pages.BasePageObject;
import ru.yandex.qatools.htmlelements.annotations.Name;
import ru.yandex.qatools.htmlelements.element.Link;

/**
 * @author Alex-samo (alex-samo@yandex-team.ru)
 *         Date: 07.10.13
 */
@NamedUrls({
        @NamedUrl(name = "show.administration.page", url = "/registered/main.pl?cmd=adminPageAg")
})
public class AdminPageAgPage extends BasePageObject {


    @Name("Представители агенства")
    @FindBy(xpath = ".//a[contains(@href,'cmd=showAgReps')]")
    private Link agencyRepresentativesLink;

    public void clickOnAgencyRepresentativesLink() {
        agencyRepresentativesLink.click();
    }
}
