promise chaining vs promise.all
问题 i have a task to enter the notification date using protractor where i need to clear contents before entering so i have came up with this code this.Then(/^I should enter "Notification Date"$/, () => { const d = new Date(); return orderCheckOutPage.pageElements.recipientNotificationDateMonth.clear().then(() => { return orderCheckOutPage.pageElements.recipientNotificationDateMonth.sendKeys(d.getMonth() + 1).then(() => { return orderCheckOutPage.pageElements.recipientNotificationDateDay.clear()