Do we have "or" condition for elements collection #2681
Unanswered
VladyslavZagorodnyi
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
or is also an if-else-development and it is not a good practice. better to create two atomic tests for both Button A + Button B and Button A + Button C cases |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@asolntsev maybe you could step into this conversation? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I identified interesting case, let's assume I have elements collection and I need to check text of elements inside collection. It may look like:
And it looks fine, short and easy, but let's assume that sometimes button B can be changed to button C (dummy example, just because of test logic or because some env limitation ... )
So how can I make or logic? It could be very useful to make something like this:
so if there will NOT be "Button A", "Button B" but will BE "Button A", "Button C" - test will finish successfully.
Maybe somebody faced such cases previously, let me know if there is a good solution for such requirements (without adding if else ...)
Beta Was this translation helpful? Give feedback.
All reactions