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(); }
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(); }