Beispiel #1
0
 public static void LoginFromConfigFile()
 {
     NavigateToUrl(ObjectRepository.Config.GetWebSite());
     DropDownListHelper.SelectElementByText(By.Id("cmbCompanies"), "Vered Hasharon");
     LoginPagePOM    veredLog    = new LoginPagePOM(ObjectRepository.Driver);
     WelcomToTcoPage veredWelcom = veredLog.ClickLogin(ObjectRepository.Config.GetVeredUser(), ObjectRepository.Config.GetVeredPassword());
 }
Beispiel #2
0
        public static void LoginFromExcelFile()
        {
            string FilePath = @"E:\Users\Bassam\Documents\Training\DataDriven\ExcelTestData\TcoData.xlsx";

            NavigateToUrl(ObjectRepository.Config.GetWebSite());
            DropDownListHelper.SelectElementByText(By.Id("cmbCompanies"), "Vered Hasharon");
            PomLogin TcoLogin = new PomLogin(ObjectRepository.Driver);

            TcoLogin.Login(ExcelReaderHelper.GetCelldata(FilePath, "Login", 1, 0).ToString(), ExcelReaderHelper.GetCelldata(FilePath, "Login", 1, 1).ToString());
            Thread.Sleep(2000);
        }