Example #1
0
 public void TableChainTest()
 {
     PerformancePage.Open();
     PerformancePage.CheckOpened();
     PerformancePage.UsersTable.AssertThat()
     .Size(400)
     .Size(Is.GreaterThan(399))
     .Size(Is.LessThanOrEqualTo(400))
     .Size(Is.GreaterThanOrEqualTo(400))
     .Size(Is.LessThan(401))
     .HasRowWithValues(
         HasValue("Brian Meyer", InColumn("Name")),
         HasValue("*****@*****.**", InColumn("Email")))
     .NotEmpty()
     .RowsWithValues(3, ContainsValue("Baker", InColumn(1)))
     .HasColumn("Email")
     .HasColumns(new[] { "Name", "City" })
     .Columns(Is.SubsequenceOf(new[] { "Name", "City", "Phone", "Email", "Address" }))
     .Tag(ContainsString("table"))
     .Displayed()
     .Enabled()
     .Attr("id", ContainsString("users-table"))
     .CssClass(ContainsString("uui-table"))
     .Css("color", ContainsString("rgba(102, 102, 102, 1)"))
     .Text(ContainsString("Name"))
     .HasClass("stripe");
 }
 public void AssertValidationTest()
 {
     _height.AssertThat().Number(Is.GreaterThan(0.0))
     .Number(Is.LessThan(3.0))
     .Number(Is.EqualTo(2.1));
 }
Example #3
0
 public void AssertValidationTest()
 {
     TestSite.Html5Page.Volume.AssertThat().Value(Is.GreaterThan(0))
     .Value(Is.LessThan(200));
     TestSite.Html5Page.DisabledRange.AssertThat().Value(Is.EqualTo(50));
 }