mardi 21 avril 2015

How can I use Protractor with google.com?

google.com isn't an Angular app, but Protractor should still be able to test it, right? I've been trying to do a simple test of a search, but keep running to errors.

the spec:

browser.ignoreSynchronization = true;

describe('Google Demo', function() {
  it('Should Search', function() {
    browser.get('http://google.com/');
    browser.wait(element(By.id('q')).isPresent);
    element(By.id('q')).sendKeys('please work');
  });
});

the error is:

Failures:

1) Google Demo Should Search
 Message: TypeError: Cannot read property 'count' of undefined

What am I doing wrong? I'd appreciate any help!

Aucun commentaire:

Enregistrer un commentaire