@@ -0,0 +1,2020 @@
+package org.motechproject.uitest.page;%0A%0Aimport org.openqa.selenium.By;%0Aimport org.openqa.selenium.WebDriver;%0A%0Apublic class DataServicesPage extends AbstractBasePage %7B%0A%0A    public static final By ENTITY_NAME_FIELD = By.name(%22inputEntityName%22);%0A    public static final By NEW_ENTITY_BUTTON = By.id(%22newEntityButton%22);%0A    public static final By SAVE_ENTITY_BUTTON = By.id(%22saveNewEntityButton%22);%0A    public static final By DATA_SERVICES_BUTTON = By.id(%22data-services%22);%0A    public static final By SCHEMA_EDITOR_BUTTON = By.id(%22schemaEditor%22);%0A    public static final By BROWSE_INSTANCES_BUTTON = By.id(%22browseInstancesButton%22);%0A    public static final By ADD_NEW_INSTANCE_BUTTON = By.id(%22addNewInstanceButton%22);%0A%0A    public static final String HOME_PATH = %22/module/server/home#%22;%0A%0A    public DataServicesPage(WebDriver driver) %7B%0A        super(driver);%0A    %7D%0A%0A    public void createNewEntity(String entityName) throws InterruptedException %7B%0A        waitForElement(DATA_SERVICES_BUTTON);%0A        clickWhenVisible(DATA_SERVICES_BUTTON);%0A        waitForElement(SCHEMA_EDITOR_BUTTON);%0A        clickWhenVisible(SCHEMA_EDITOR_BUTTON);%0A        waitForElement(NEW_ENTITY_BUTTON);%0A        clickWhenVisible(NEW_ENTITY_BUTTON);%0A        waitForElement(ENTITY_NAME_FIELD);%0A        setTextToFieldNoEnter(ENTITY_NAME_FIELD, entityName);%0A        waitForElement(SAVE_ENTITY_BUTTON);%0A        clickOn(SAVE_ENTITY_BUTTON);%0A        waitForElement(BROWSE_INSTANCES_BUTTON);%0A    %7D%0A%0A    public void goToEntityTable(String entityName) throws InterruptedException %7B%0A        waitForElement(DATA_SERVICES_BUTTON);%0A        clickWhenVisible(DATA_SERVICES_BUTTON);%0A        waitForElement(By.id(String.format(%22entity_%25s%22, entityName)));%0A        clickWhenVisible(By.id(String.format(%22entity_%25s%22, entityName)));%0A        waitForElement(ADD_NEW_INSTANCE_BUTTON);%0A    %7D%0A%0A    @Override%0A    public String expectedUrlPath() %7B%0A        return HOME_PATH;%0A    %7D%0A%0A    @Override%0A    public void goToPage() %7B%0A        getDriver().get(getMotechUrl() + HOME_PATH);%0A    %7D%0A%7D%0A

Add selenium test for adding a new entity in MDS