If a test needs to verify existence or absence of a specific option in a dropdown you can do it via a simple function presented below.