anchor.diff:            driver = null;
           });
   
  -<<<<<<< HEAD
           test('handles exceptions', () async {
             try {
               await driver.switchTo.alert;
  
positive.code:         });
        },
        testOn: '!js');
  =======
      test('handles exceptions', () async {
        try {
          await driver.switchTo.alert;
        } catch (e) {}
        await waitFor(() => events, matcher: hasLength(2));
        expect(events[1].method, 'GET');
        expect(events[1].endPoint, contains('alert'));
        expect(events[1].exception, new isInstanceOf<WebDriverException>());
        expect(events[1].result, isNull);
        expect(events[1].startTime.isBefore(events[1].endTime), isTrue);
        expect(events[1].stackTrace, new isInstanceOf<Chain>());
      });
  
      test('handles normal operation', () async {
        await driver.findElements(const By.cssSelector('nosuchelement')).toList();
        await waitFor(() => events, matcher: hasLength(2));
        expect(events[1].method, 'POST');
        expect(events[1].endPoint, contains('elements'));
        expect(events[1].exception, isNull);
        expect(events[1].result, hasLength(0));
        expect(events[1].startTime.isBefore(events[1].endTime), isTrue);
        expect(events[1].stackTrace, new isInstanceOf<Chain>());
      });
    }, testOn: '!js');
  >>>>>>> cf97653bdf1a5b77bb0246231b9770149f403f16
  }
  
negative.code:         var events = [];
          var sub;
  
          setUp(() async {
            driver = await createTestDriver();
            sub = driver.onCommand.listen(events.add);
  
            await driver.get(testPagePath);
          });
  