How can I use Protractor with google.com?
Since it's a non-Angular app, you need to use browser.driver
instead of just browser
. GitHub Link for non-angular app
browser.ignoreSynchronization = true;
describe('Google Demo', function() {
it('Should Search', function() {
browser.driver.get('http://google.com/');
browser.driver.findElement(by.name('q')).sendKeys('please work');
});
});
This is working on my system!