Add keywords Read Until Multiple and Read Until Multiple Regexp equivalent to Read Until and Read Until Regexp but accepting multiple expectations
Those keywords would then return the index of the matched expectation and the output.
An argument could be used to add the prompt as an expectation with index -1.
The signatures would be:
def read_until_multiple(*expected, loglevel=None, until_prompt=False, strip_prompt=False):
def read_until_multiple_regexp(*regexp, loglevel=None, until_prompt=False, strip_prompt=False):
This would help handling cases where there is multiple behaviors such as an error returning to the prompt while the normal behavior would request other actions from the user. For example requesting a manual entry on linux, if the entry is not found an error is returned while otherwise we are on the requested manual entry.
Add keywords Read Until Multiple and Read Until Multiple Regexp equivalent to Read Until and Read Until Regexp but accepting multiple expectations
Those keywords would then return the index of the matched expectation and the output.
An argument could be used to add the prompt as an expectation with index
-1.The signatures would be:
This would help handling cases where there is multiple behaviors such as an error returning to the prompt while the normal behavior would request other actions from the user. For example requesting a manual entry on linux, if the entry is not found an error is returned while otherwise we are on the requested manual entry.