public void Send_information_message()
        {
            const string message = "Test message";

            _sink.Info(EventIds.Test, message);

            var e = _report.Events.FirstOrDefault();

            Assert.IsNotNull(e);
            Assert.AreEqual(EventIds.Test, e.PartialId);
            Assert.AreEqual(message, e.Message.ToString());
            Assert.AreEqual(typeof(EventSystemTests).FullName, e.Source);
        }
Beispiel #2
0
 public IWebElement FindElement(By by)
 {
     _sink.Info(EventIds.SelectorUsage, "Find element by {by}.", by);
     using (_sink.Measure(EventIds.FindElement, "Find element by {by}.", by))
     {
         return(_driver.FindElement(by));
     }
 }
 public IWebElement FindElement(By by)
 {
     _sink.Info(EventIds.SelectorUsage, "Find element by {by}.", by);
     return(_element.FindElement(by));
 }