describe("Expectation: Display a list of cars for adding", function() {
var car_add_button = element(by.id('add_car'));
car_add_btn.click() // Encounter an issue, unable to proceed
// more validations to be included...
});
When executing the test with Protractor, the following error is encountered:
error while waiting for protractor to sync
The car_add_btn
triggers a transition to a new page where a list of cars (fetched via an http get request) is presented to the user. How can I ensure that the webdriver successfully clicks the button and progresses without encountering errors?