Forum Discussion
MarkHays
3 years agoOccasional Contributor
I think the call to FindElement is probably the one that is logging the error. You can use other alternatives such as FindElements and then get a list of elements (list would contain nothing in this case) and go from there.
I do agree that when FindElement cannot find something it logging an error is problematic, and it would be good if they had an optional parameter to log an error or not.