I'm having trouble accessing HTML elements using jQuery with JavaScriptExecutor and consistently encountering null reference exceptions. Any idea what could be causing this issue?
Below is the code snippet I'm working with:
List<Object> list= (List<Object>)(IJavaScriptExecutor)Browser).ExecuteScript("$('tbody').find('tr')");
list.Count.ShouldBeLessThan(rowsWithNewActivity);