I apologize for the delay in getting back to you on this. The HtmlFindExpression cannot be null in your case, because you are defining it in your code. As for the "findByExpression" element, it can be null if the element is not found using the Find Expression. However I cannot tell why you are unable to find that element without access to the actual page where this element is located.
I have created a sample demo page using the provided HTML snippet, however as you can see in this video
, I wasn't able to reproduce the problem you are experiencing using the same find expression. To be able to help you further with this, please provide the means to reproduce the issue locally(either in your app or on a public site). Alternatively, you can capture a Fiddler trace using FiddlerCap
and send it to us in a zip file. If you deem that information too sensitive for this forum, you can create a support ticket and attach it there. Thanks for providing the information we need to best assist you.
the Telerik team