I need to check with Protractor if the button in my angular application is on, so this is my test:
it('submit should not be enabled',function() { var price = by.name('price'), oldCategory = by.name('oldCategory'), newCategory = by.name('newCategory'), oldPayment = by.name('oldPayment'), newPayment = by.name('newPayment'), item = by.name('item'), submit = by.id('submitButton'); expect(submit.isEnabled().toBe(false)); });
when i run the test get this error:
TypeError: Object By.name("price") has no method 'isEnabled'
angularjs protractor
arpho
source share