I am trying to use the Find Element activity to look for a specific element on a web page and then depending on if it exists or not do something. I am struggling with the If activity though as no matter what type of VB script I put into the Condition field, I can’t seem to get it to work properly. It seems like it will always choose the “Then” side as if the condition is true and never choose the “Else” side even when the element doesn’t exist on the site.
Is it because Find Element activity creates the variable as a UIElement and not Boolean? If it is, is there a way to change the variable type to Boolean?