Detecting elements exist or do not exist

In an attempt to test logging into our app as different users/roles, different ui elements will be present. I cannot seem to find a good way to determine a selector is null or invalid without throwing an exception. Is there a best practice or recommendation to follow?

Hi @jkdale,

You can use the Chrome Dev Tools if you’re using Chrome to find your selectors. This video could help.