public void Register() { Name.SendKeys("Test User"); DoB.SendKeys("11/11/11"); Address.SendKeys("125 King Street, Auckland"); Contact.SendKeys("+64100200300"); Submit.Click(); commonLib cl = new commonLib(); cl.popup(this.driver); }
//public HomePage(IWebDriver driver) //{ // this.driver = driver; // PageFactory.InitElements(driver, this); //} public void displayName() { string Name = ""; commonLib cl = new commonLib(); for (int i = 0; i < 10; i++) { Name = cl.generateRandomName(5); } TextBox1.SendKeys(Name); DisplayName.Click(); Assert.That(nameLabel.Text.Contains(Name)); }