示例#1
0
        public void LoginAsNobody(string baseUrl)
        {
            _driver.Navigate().GoToUrl(baseUrl);
            ProductSection.Click();
            ProductSection.Clear();
            // sending a single quote is not possible with the Chrome Driver, it sends two single quotes!
            ProductSection.SendKeys("nobody");

            VaccumCleaners.Clear();
            VaccumCleaners.SendKeys("blah");

            LoginButton.Click();
        }
示例#2
0
        public void OpenVaccumCleaners(string baseUrl)
        {
            _driver.Navigate().GoToUrl(baseUrl);
            ProductSection.Click();
            ProductSection.Click();
            //// sending a single quote is not possible with the Chrome Driver, it sends two single quotes!
            //ProductSection.SendKeys("admin'--");

            VaccumCleaners.Click();
            //VaccumCleaners.SendKeys("blah");

            //LoginButton.Click();
        }