Пример #1
0
        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);
        }
Пример #2
0
        //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));
        }