Пример #1
0
 public void AffectWith(Action action, bool watchSubtree=true)
 {
     var body = GetPageBody();
     var watcher = new PageFragmentWatcher(Driver, body);
     watcher.StartWatching(watchSubtree);
     action();
     watcher.WaitForChange();
 }
Пример #2
0
        public void AffectWith(Action action, bool watchSubtree = true, int timeOut = Timeouts.DefaultChangeExpectation)
        {
            var body    = GetPageBody();
            var watcher = new PageFragmentWatcher(Driver, body);

            watcher.StartWatching(watchSubtree);
            action();
            watcher.WaitForChange(timeOut);
        }