I have a test where options in the dropdown are randomly greyed out and not available for selection in the dropdown. How do I skip selecting them?
They really shouldn’t be randomly greyed out – it should be a known, verifiable state which you can either bring about or test for.
Based on a known state, your test should probably:
-
Verify the selectable options are indeed selectable (and possibly verify the correct CSS styles are applied).
-
Verify the unselectable options are indeed unselectable (and possibly verify the correct CSS styles are applied).
So, in essence, you’re not skipping anything.