In general you should not catch the exceptions because this is how all .NET tests are organized. If there is something wrong with your test exception will occur to notify the run-time that something is wrong and the test should fail. After that you examine the stack trace to see what went wrong but if you catch the exception the run-time will continue and ignore the current error so next error will be misleading. In fact all the Assert methods throw exception if their condition is not met so even if you catch the Find exception the Assert will throw one.
Currently there is no way to stop the "Get" method from throwing exception. You can however use Find instead of Get this way if element is not found a Null object can be returned.
var divUserName = Manager.ActiveBrowser.Find.ByAttributes<HtmlDiv>(
"Cannot find username control"
All the best,
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items