I am want to verify text of an element. How to verify text is one of many strings: Such as: "Login fail" , "Error login", "Attempt fail"... ?
*** Keywords ***
Assert Warning Message
Element Should Contain id=session_key-login-error "Login fail"
So I would create a list with the element that are accepted and then make a command list should contain;
Example:
Name:List Should Contain Value Source:Collections Arguments:[ list_ | value | msg=None ]
Fails if the value is not found from list. If the keyword fails, the default error messages is does not contain value ''. A custom message can be given using the msg argument.