package com.frameworkium.integration.heroku.theinternet.pages.web;

import com.frameworkium.core.ui.annotations.Visible;
import com.frameworkium.core.ui.pages.BasePage;
import com.frameworkium.core.ui.pages.PageFactory;
import org.openqa.selenium.support.FindBy;
import ru.yandex.qatools.allure.annotations.Step;
import ru.yandex.qatools.htmlelements.annotations.Name;
import ru.yandex.qatools.htmlelements.element.Link;

public class DynamicLoadingPage extends BasePage<DynamicLoadingPage> {

    @Visible
    @Name("Example 1: Element on page that is hidden link")
    @FindBy(linkText = "Example 1: Element on page that is hidden")
    private Link example1Link;

    @Name("Example 2: Element rendered after the fact")
    @FindBy(linkText = "Example 2: Element rendered after the fact")
    private Link example2Link;

    @Step("Click the 'Example 1: Element on page that is hidden' link")
    public DynamicLoadingExamplePage clickExample1() {
        example1Link.click();
        return PageFactory.newInstance(DynamicLoadingExamplePage.class);
    }

    @Step("Click the 'Example 2: Element rendered after the fact' link")
    public DynamicLoadingExamplePage clickExample2() {
        example2Link.click();
        return PageFactory.newInstance(DynamicLoadingExamplePage.class);
    }
}

@@ -523,541 +523,144 @@
 ple 
-1: Element on page that is hidden link%22)%0A    @FindBy(linkText = %22Example 1: Element on page that is hidden%22)%0A    private Link example1Link;%0A%0A    @Name(%22Example 2: Element rendered after the fact%22)%0A    @FindBy(linkText = %22Example 2: Element rendered after the fact%22)%0A    private Link example2Link;%0A%0A    @Step(%22Click the 'Example 1: Element on page that is hidden' link%22)%0A    public DynamicLoadingExamplePage clickExample1() %7B%0A        example1Link.click();%0A        return PageFactory.newInstance(DynamicLoadingExamplePage.class);%0A    %7D
+2: Element rendered after the fact%22)%0A    @FindBy(linkText = %22Example 2: Element rendered after the fact%22)%0A    private Link example2Link;
 %0A%0A  

Tidy up page object