webdriverjs-retry
webdriverjs-retry copied to clipboard
Retry.run doesn't sync with Protractor's control flow
Using this plugin with Protractor. Have these lines in my spec:
view.chat.sendMessage(1);
retry.run(function () {
view.chat.sendMessage(2);
});
view.chat.sendMessage(3);
view.chat.sendMessage
looks like this:
function () {
element(by.model('message')).sendKeys(msg);
return element(by.buttonText('Send')).click();
}
I expected this output in my chat:
1
2
3
but got this:
2
1
3
Shouldn't actions in the function passed onto retry.run
be added to the control flow and be executed in the order I expected?