Class ApplicationCreatePage


  • public class ApplicationCreatePage
    extends ViewPage
    Represents the actions possible on the first step of the App Within Minutes wizard.
    Since:
    4.2M1
    Version:
    $Id: ab8df0be9f9ce1269eb0a328adbf33c414472d5c $
    • Field Detail

      • EMPTY_APP_NAME_ERROR_MESSAGE

        public static final String EMPTY_APP_NAME_ERROR_MESSAGE
        The error message displayed when we try to create an application with an empty name.
        Since:
        13.3RC1, 12.10.6
        See Also:
        Constant Field Values
      • APP_NAME_USED_WARNING_MESSAGE

        public static final String APP_NAME_USED_WARNING_MESSAGE
        The warning message displayed when we input the name of an existing application.
        Since:
        13.3RC1, 12.10.6
        See Also:
        Constant Field Values
    • Constructor Detail

      • ApplicationCreatePage

        public ApplicationCreatePage()
    • Method Detail

      • gotoPage

        public static ApplicationCreatePage gotoPage()
        Loads the first step of the App Within Minutes wizard
        Returns:
        the page that represents the first step of the App Within Minutes wizard
      • setApplicationName

        public void setApplicationName​(String appName)
        Types the given string into the application name input and wait for the preview to be available.
        Parameters:
        appName - the application name
      • getApplicationNameInput

        public org.openqa.selenium.WebElement getApplicationNameInput()
        Returns:
        the text input where the application name is typed
      • waitForApplicationNamePreview

        public void waitForApplicationNamePreview()
        Waits until the preview for the currently entered application name is displayed.
      • waitForApplicationNameError

        public void waitForApplicationNameError()
        Waits until the application name input has an error message.
      • setLocation

        public void setLocation​(String location)
        Sets the location where to create the application.
        Parameters:
        location - the location where to create the application
        Since:
        7.3RC1
      • getLocationPicker

        public DocumentPicker getLocationPicker()
        Returns:
        the application location picker
        Since:
        7.4.1, 8.0M1
      • clickNextStep

        public ApplicationClassEditPage clickNextStep()
        Clicks on the Next Step button.
        Returns:
        the page that represents the next step of the App Within Minutes wizard
      • clickNextStepButton

        public void clickNextStepButton()
        Simply clicks on the Next Stept button, nothing more.

        You should generally use clickNextStep() instead if you are not expecting an error or something outside the normal flow.