public void GivenARetailerHasCreatedProcessBRequest(string bProcess) { var LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); var BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess(bProcess); GivenIHaveAddedValidDataToAllSectionsOfTheProcessBForm(); var FormB01Page = new FormF01Page(driver); FormB01Page.ClickButton("Submit"); LoginPage = new LoginPage(driver); LoginPage.Logout(); LoginPage.CreateDriver(); LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.wsd); LoginPage.GetPageByLinkText("Processes"); var ProcessesIStartedPage = new ProcessesIStartedPage(driver); ProcessesIStartedPage.GetProcess("B. Metering", bProcess); var ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps(); ProcessesIStartedSteps.GivenIOpenTheProcess(); FormB01Page = new FormF01Page(driver); FormB01Page.ClickTheWsdMenuItem(); }
public void GivenARetailerHasCreatedAProcessBRequest() { var LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); var BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess("B01 Meter installation"); GivenIHaveAddedValidDataToAllSectionsOfTheProcessBForm(); var FormB01Page = new FormF01Page(driver); FormB01Page.ClickButton("Submit"); LoginPage = new LoginPage(driver); LoginPage.LogOutAnsSignInAsAnother(); LoginPage.LoginUser(sequenceUsers.wsd); LoginPage.GetPageByLinkText("Processes"); var ProcessesIStartedPage = new ProcessesIStartedPage(driver); ProcessesIStartedPage.GetProcess("B. Metering", "B01 Installation of a meter performed by the Wholesaler"); var ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps(); ProcessesIStartedSteps.GivenIOpenTheProcess(); FormB01Page = new FormF01Page(driver); FormB01Page.ClickTheWsdMenuItem(); }
public void GivenARetailerHasCreatedAProcessARequest() { LoginPage = new LoginPage(driver); LoginPage.LoginUser(sequenceUsers.retailer); LoginPage.GetPageByLinkText("Start Process"); BusinessProcessesPage = new BusinessProcessesPage(driver); BusinessProcessesPage.CreateInstanceOfProcess("A01 Pre application enquiries"); GivenIHaveAddedValidDataToAllSectionsOfTheProcessAForm(); FormF01Page = new FormF01Page(driver); FormF01Page.ClickButton("Save & Submit"); LoginSteps = new LoginSteps(); LoginSteps.GivenILogInAsAWholesaler(); LoginPage = new LoginPage(driver); LoginPage.GetPageByLinkText("Processes"); ProcessesIStartedPage = new ProcessesIStartedPage(driver); ProcessesIStartedPage.GetProcess("A. New Connections", "A01 Pre-Application enquiry in relation to a new connection or connections"); ProcessesIStartedSteps = new Steps.ProcessesIStartedSteps(); ProcessesIStartedSteps.GivenIOpenTheProcess(); var givenSteps = new SharedSpecflowSteps.GivenSteps(); givenSteps.GivenIExpandTheLeftHandColumn(); givenSteps.GivenIClickOnTheWSDLinkToProgressTheProcess(); }
public void WhenTheRetailerResubmitsTheFormA1() { FormF01Page = new FormF01Page(driver); FormA01Page.FetchTask(); FormF01Page.ClickButton("Save & Submit"); }
public void GivenIClickTheButton(string buttonName) { FormF01Page = new FormF01Page(driver); FormF01Page.ClickButton(buttonName); }