public void AddPayeScheme(string companyNumber)
        {
            ViewAccount();
            AccountHomePage accounthomepage = new AccountHomePage(Driver);

            accounthomepage.PAYELink.Click();
            PayeSchemesPage payeschemespage = new PayeSchemesPage(Driver);

            payeschemespage.AddPayeButton.Click();
            payeschemespage.AddPayeDraft.Click();
            payeschemespage.ContinuePaye.Click();
            HMRCLoginPage hmrcpage = new HMRCLoginPage(Driver);

            LoginHmrcCredentials();
            GrantAuthority();
            //LoadTempPage();
            HMRCResponsePage hmrcresponsepage = new HMRCResponsePage(Driver);

            hmrcresponsepage.AuthoriseButton.Click();
            PayeSchemesPage payeschemepage = new PayeSchemesPage(Driver);

            payeschemepage.ChooseExistingCompany.Click();
            hmrcresponsepage.AuthoriseButton.Click();
            hmrcresponsepage.AuthoriseButton.Click();
            //HMRCResponsePage hmrcresponsepage = new HMRCResponsePage(Driver);
        }
Exemplo n.º 2
0
        public void DenyAuthority()
        {
            HMRCResponsePage hmrcresponsepage = new HMRCResponsePage(Driver);

            hmrcresponsepage.DenyButton.Click();
        }
Exemplo n.º 3
0
        public void GrantAuthority()
        {
            HMRCResponsePage hmrcresponsepage = new HMRCResponsePage(Driver);

            hmrcresponsepage.AuthoriseButton.Click();
        }