package com.frameworkium.integration.seleniumhq.components;

import com.frameworkium.core.ui.annotations.Visible;
import com.frameworkium.core.ui.pages.PageFactory;
import com.frameworkium.integration.seleniumhq.pages.SeleniumDownloadPage;
import org.openqa.selenium.support.FindBy;
import ru.yandex.qatools.htmlelements.element.HtmlElement;
import ru.yandex.qatools.htmlelements.element.Link;

@FindBy(id = "header")
public class HeaderComponent extends HtmlElement {

    @Visible
    @FindBy(css = "h1 > a")
    private Link homeLink;

    @FindBy(css = "#menu_download > a")
    private Link downloadLink;

    public SeleniumDownloadPage clickDownloadLink() {
        downloadLink.click();
        return PageFactory.newInstance(SeleniumDownloadPage.class);
    }

}

@@ -58,61 +58,8 @@
 s;%0A%0A
-import com.frameworkium.core.ui.annotations.Visible;%0A
 impo
@@ -414,77 +414,8 @@
  %7B%0A%0A
-    @Visible%0A    @FindBy(css = %22h1 %3E a%22)%0A    private Link homeLink;%0A%0A
     

Remove unused part of HeaderComponent