Package com.motability.document.pageobjects

Examples of com.motability.document.pageobjects.StartPage


    private DocumentTemplateListPage listPage;

   @When("^creating a Document Template with name '(.*)'$")
    public void creating_a_Document_Template(String templateName) throws Throwable {
  StartPage startPage = globalScenario.getStartPage();
  DocumentTemplateListPage listPage = startPage.openDocumentTemplatePage();
  assertTrue("The Document Template Listing Page was not properly loaded", listPage.isDisplayed());

  createDocumentTemplate(templateName, listPage);

  assertTrue("Document show page was not displayed", showPage.isDisplayed());
View Full Code Here


       docListPage.documentTemplateWithNameExists(templateName));
    }

    @Given("^the following document templates exists:$")
    public void the_following_document_templates_exists(List<DocumentTemplate> templates) throws Throwable {
  StartPage startPage = globalScenario.getStartPage();
  DocumentTemplateListPage listPage = startPage.openDocumentTemplatePage();

  for (DocumentTemplate documentTemplate : templates) {
      createDocumentTemplate(documentTemplate.getTemplateName(), listPage);
  }
    }
View Full Code Here

  }
    }

    @Given("^that there exists a document template with name '(.*)'$")
    public void that_there_exists_a_document_template_with_name(String templateName) throws Throwable {
  StartPage startPage = globalScenario.getStartPage();
  DocumentTemplateListPage listPage = startPage.openDocumentTemplatePage();
  createDocumentTemplate(templateName, listPage);
    }
View Full Code Here

    public void afterScenario() {
  //TODO cleanup database...
    }

    public StartPage getStartPage() {
  StartPage startPage = PageFactory.initElements(webDriver, StartPage.class);
  return startPage;
    }
View Full Code Here

TOP

Related Classes of com.motability.document.pageobjects.StartPage

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.