示例#1
0
        public VerifyComputer AddComputer(string name, string introduced, string discontinued, string company)
        {
            //open page
            AddNewComputer.Click();
            //Thread.Sleep(1000);

            //provide data
            ComputerName.SendKeys(name);
            IntrodecedDate.SendKeys(introduced);
            DiscontinuedDate.SendKeys(discontinued);
            Company.SendKeys(company);
            Company.SendKeys(Keys.Enter);
            Console.WriteLine("Company details provided");

            //submit form
            CreateComputer.Submit();
            return(new VerifyComputer(webDriver));
        }