package com.atlassian.pageobjects.elements.test.pageobjects.page;

import com.atlassian.pageobjects.Page;
import com.atlassian.pageobjects.elements.Element;
import com.atlassian.pageobjects.elements.ElementBy;
import com.atlassian.pageobjects.elements.ElementFinder;

import javax.inject.Inject;

import static com.atlassian.pageobjects.elements.query.TimedAssertions.assertTrueByDefaultTimeout;

/**
 * Represents the dynamicpage.html page
 */
public class DynamicPage implements Page
{
    @ElementBy(id = "nameTextBox")
    Element nameTextBox;

    @ElementBy(id = "helloWorldButton")
    Element helloWorldButton;

    @ElementBy(id = "messageSpan")
    Element messageSpan;

    @ElementBy(id = "createFieldSetButton")
    Element createFieldSetButton;

    @Inject
    ElementFinder elementFinder;

    public String getUrl()
    {
         return "/html/dynamicpage.html";
    }

    public DynamicPage createFieldSet()
    {
        createFieldSetButton.click();
        assertTrueByDefaultTimeout(nameTextBox.timed().isVisible());
        return this;
    }

    public DynamicPage helloWorld(String name)
    {
        nameTextBox.clear().type(name);
        helloWorldButton.click();
        assertTrueByDefaultTimeout(messageSpan.timed().isVisible());
        return this;
    }

    public String getMessage()
    {
        return messageSpan.getText();
    }

    public ElementFinder getElementFinder()
    {
        return elementFinder;
    }
}

@@ -358,50 +358,28 @@
 ery.
-TimedAssertions.assertTrueByDefaultTimeout
+Poller.waitUntilTrue
 ;%0D%0A%0D
@@ -994,34 +994,21 @@
     
-assertTrueByDefaultTimeout
+waitUntilTrue
 (nam
@@ -1213,34 +1213,21 @@
     
-assertTrueByDefaultTimeout
+waitUntilTrue
 (mes

Fix compilation error from previous checkin.