Protractor is built to interact with AngularJS applications. In this lesson, we will take a look at how Protractor interacts with the application using its
element and finder functions.
I was getting an error because of the browser method. After spending some time on Stack Overflow I found out that I have to use browser.driver method instead.