Пример #1
0
        public void DeleteClient()
        {
            {
                using (var driver = new ChromeDriver())
                {
                    driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);
                    URLs.OpenUrl(driver);
                    var loginPage          = new LoginPage(driver);
                    var navigationMenuPage = new NavigationMenuPage(driver);
                    var addClientPage      = new AddClientPage(driver);
                    var clientSearchPage   = new ClientSearchPage(driver);

                    loginPage.Login(userName, password);
                    navigationMenuPage.AddClientButtonClick();
                    addClientPage.FillOutContactInformation(customer);

                    string id = addClientPage.GetClientId();

                    addClientPage.GetClientId().ShouldContain(id);

                    addClientPage.DeleteButtonClick();



                    addClientPage.ConfirmDeleteButtonClick();

                    clientSearchPage.SearchInputId(id);

                    clientSearchPage.SearchInputClick();
                    clientSearchPage.GetAllSeargPage().ShouldContain(clientSearchPage.GetNoRecords());
                }
            }
        }