Ejemplo n.º 1
0
 //Inintialise Page Factory
 public ShareSkill(IWebDriver driver, int rownum)
 {
     this.driver = driver;
     PageFactory.InitElements(driver, this);
     this.rownum = rownum;
     ExcelLibHelper.PopulateInDataCollection((Path.Combine(AppDomain.CurrentDomain.BaseDirectory + filepath)), "ShareSkill");
 }
Ejemplo n.º 2
0
 public void LoginPage(IWebDriver driver)
 {
     this.driver = driver;
     driver.Navigate().GoToUrl("http://*****:*****@"C:\Users\Dell\Documents\VB Feb 2021\MarsOnboardingTask\MarsOnboardingTask\Data\TestData.xlsx");
     EmailAddress.SendKeys(ExcelLibHelper.ReadData(2, "username"));
     Password.SendKeys(ExcelLibHelper.ReadData(2, "password"));
     LoginBtn.Click();
     Thread.Sleep(3000);
     WaitClass.ElementPresent(driver, "CssSelector", "i[class='outline write icon']");
 }
Ejemplo n.º 3
0
 public ProfilePage(IWebDriver driver, int rownum)
 {
     this.driver = driver;
     this.rownum = rownum;
     ExcelLibHelper.PopulateInDataCollection((Path.Combine(AppDomain.CurrentDomain.BaseDirectory + filepath)), "Profile");
 }
Ejemplo n.º 4
0
 //Initialising driver through constructor
 public Managelisting(IWebDriver driver, int rownum)
 {
     this.driver = driver;
     this.rownum = rownum;
     ExcelLibHelper.PopulateInDataCollection((Path.Combine(AppDomain.CurrentDomain.BaseDirectory + filepath)), "ShareSkill");
 }