Obviously, if the element is not in the tree yet it will not be found. However, if it is available you you can create a library function in visual studio and add an extensions class and add it using the preferences in test studio. You should make your library build to the bin folder of the Test Studio project.
BaseTest test, String selector) where T : Control,
var random =
var classId =
, selector, classId));
NOTE: If test studio is loaded you will not be able to build the extensions project since the DLL is loaded into memory and is being used by test studio. Also, you also have to have jquery.js referenced for this to work.
You don't really need any framework selectors after you have this.
// Call it like this
HtmlInputText text =