public void FirstTest() { //Checking the state of TextBoxes and Button SeleniumGetMethods.UserNameTextboxCheck("Username", PropertyType.Name); SeleniumGetMethods.PasswordTextboxCheck("Password", PropertyType.Name); SeleniumGetMethods.LoginButtonCheck("action", PropertyType.Name); //Click on button "Prijava" SeleniumSetMethods.Click("action", PropertyType.Name); //Getting alert message from the website Console.WriteLine("Alert message: " + SeleniumGetMethods.GetText("/html/body/div[1]/div/div/div/div/div/div/div/div", PropertyType.CssName) + "\n"); }
public void FifthTest() { //Checking the state of TextBoxes and Button SeleniumGetMethods.UserNameTextboxCheck("Username", PropertyType.Name); SeleniumGetMethods.PasswordTextboxCheck("Password", PropertyType.Name); SeleniumGetMethods.LoginButtonCheck("action", PropertyType.Name); //Entering the correct Username SeleniumSetMethods.EnterText("Username", "tester12", PropertyType.Name); //Entering the correct Password SeleniumSetMethods.EnterText("Password", "Password1!", PropertyType.Name); //Click on button "Prijava" SeleniumSetMethods.Click("action", PropertyType.Name); }