Package org.zanata.page.projects

Examples of org.zanata.page.projects.CreateProjectPage


     */
    public ProjectVersionsPage createNewProject(HashMap<String, String> settings) {
        ProjectsPage projectsPage = goToHome().goToProjects();
        List<String> projects = projectsPage.getProjectNamesOnCurrentPage();
        log.info("current projects: {}", projects);
        CreateProjectPage createProjectPage = projectsPage
                .clickOnCreateProjectLink()
                .enterProjectName(settings.get("Name"))
                .enterProjectId(settings.get("Project ID"))
                .enterDescription(settings.get("Description"))
                .selectProjectType(settings.get("Project Type"));
        createProjectPage.slightPause(); // Unusual timing issue
        return createProjectPage.pressCreateProject();
    }
View Full Code Here


    @Feature(summary = "The user can begin creating a project from the Dashboard",
            tcmsTestPlanIds = 5316, tcmsTestCaseIds = 0)
    @Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
    public void createProject() throws Exception {
        CreateProjectPage createProjectPage =
            dashboard.gotoProjectsTab().clickOnCreateProjectLink();
        assertThat(createProjectPage.getTitle())
                .contains("New Project");
    }
View Full Code Here

    }

    public CreateProjectPage clickOnCreateProjectLink() {
        log.info("Click Create Project");
        waitForWebElement(createProjectLink).click();
        return new CreateProjectPage(getDriver());
    }
View Full Code Here

TOP

Related Classes of org.zanata.page.projects.CreateProjectPage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.