Ejemplo n.º 1
0
        public void GivenIAmSignedInAs(string username)
        {
            Drivers.Goto(Configuration.Logout.ToString());

            Drivers.Goto(Configuration.ApplicationRoot.ToString());
            Drivers.SetTextbox("input[name=Username]", username);
            Drivers.SetTextbox("#PWD", Configuration.Passwords[username.ToUpper()]);
            Drivers.Click("button[name=loginbtn]");
        }
Ejemplo n.º 2
0
 public void WhenIBrowseTo(string url)
 {
     try
     {
         Drivers.Goto(Configuration.Url(url));
     }
     catch (Exception ex)
     {
         Assert.Fail("Could not browse to {0}: {1}", url, ex.Message);
     }
 }
Ejemplo n.º 3
0
 public void GivenIAmAnUnauthenticatedUser()
 {
     try
     {
         string url = Configuration.Logout.ToString();
         Console.WriteLine("Browsing to {0}", url);
         Drivers.Goto(url);
     }
     catch (Exception ex)
     {
         Assert.Fail("Could not browse to /Account/Logout: {0}", ex.Message);
     }
 }