Currently, I am using Protractor 5.1.1 along with Chromedriver 2.27. My goal is to make the script wait until the message "Scheduling complete" appears after clicking on the schedule button. Despite trying various codes (including the commented out code), I have not been successful in achieving this. Protractor continues execution every time. Any suggestions or solutions?
https://i.stack.imgur.com/8zsFl.pnghttps://i.stack.imgur.com/BCYyr.png
that.serviceFilter.sendKeys(serviceName).then(function() {
utilsObj.doActionWithWait(that.serviceRowInServiceList, function() {
utilsObj.doActionWithWait(that.pickFilteredService, function() {
that.pickFilteredService.click().then(function() {
that.selectAllBtn.click().then(function() {
that.actionBtn.click().then(function() {
that.scheduleBtn.click()
// //EC = protractor.ExpectedConditions;
// var aaa = element(by.xpath("//*[@id='SchedulingInProgress']"));
// browser.wait(function () {
// return EC.visibilityOf(aaa).call().then(function (present) {
// console.log('\n' + 'looking for element....')
// if (present) {
// console.log('\n' + 'element not found!')
// return true;
// } else {
// console.log('\n' + 'element found!!')
// return false;
// }
// });
// }, 50000);
});
browser.wait(function() {
return browser.driver.isElementPresent(by.xpath("//*[@id='SchedulingInProgress']"))
})
});
});
});
});
});