webdriverjs-retry icon indicating copy to clipboard operation
webdriverjs-retry copied to clipboard

Retry.run doesn't sync with Protractor's control flow

Open eolognt opened this issue 9 years ago • 0 comments

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?

eolognt avatar May 27 '15 15:05 eolognt