示例#1
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));
        }