Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LoginSuites : Base.Base
- {
- public LoginReusables LoginReusables;
- public LoginSuites() { }
- public LoginSuites(IWebDriver driver) : base(driver) { }
- public static String[] ParametersValuesOne = { "1", "2", "3" };
- public static String[] ParametersValuesTwo = { "4", "5", "6"};
- public static String[] ParametersValuesThree = { "7", "8", "9" };
- public void DejaVutLogin(String a, String b, String c)
- {
- driver.FindElement(By.Id("textfield1")).SendKeys(a);
- driver.FindElement(By.Id("textfield2")).SendKeys(b);
- driver.FindElement(By.Id("textfield3")).SendKeys(c);
- }
- public void DejavuSuiteForLogin()
- {
- LoginReusables = new LoginReusables(driver);
- foreach(string valueOne in LoginSuites.ParametersValuesOne)
- {
- foreach (string valueTwo in LoginSuites.ParametersValuesTwo)
- {
- foreach (string valueThree in LoginSuites.ParametersValuesThree)
- {
- DejaVutLogin(valueOne, valueTwo, valueThree);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement