public void CheckIfAllElementsAreVisible()
        {
            RegisterScenario rPage = new RegisterScenario();

            Assert.Multiple(() => {
                Assert.That(rPage.UserIdField.Displayed, "User ID not displayed");
                Assert.That(rPage.UserNameField.Displayed, "User Name not displayed");
                Assert.That(rPage.PasswordField.Displayed, "Password not displayed");
            });
        }
Beispiel #2
0
        public static void FillRegistrationForm(string userid, string password, string username, string address, string country, string zip, string email)
        {
            RegisterScenario rPost = new RegisterScenario();

            rPost.UserIdField.Clear();
            rPost.UserNameField.Clear();
            rPost.PasswordField.Clear();
            rPost.AddressField.Clear();
            rPost.EmailField.Clear();
            rPost.ZipField.Clear();
            new SelectElement(rPost.CountryField_DDL).SelectByText(country);
            rPost.UserNameField.SendKeys(username);
            rPost.PasswordField.SendKeys(password);
            rPost.UserIdField.SendKeys(userid);
            rPost.AddressField.SendKeys(address);
            rPost.EmailField.SendKeys(email);
            rPost.ZipField.SendKeys(zip);
            rPost.RegisterButton.Click();
        }