It is hard to determine what is causing the problem without seeing the full exception and the complete code you are using. Are you trying to use a Generic method
? If so, I have tested the following code against the Google starting page and it works as expected.
T WaitForElement<T>() where T : ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl,
var Element = Manager.Current.ActiveBrowser.WaitForElement(10000,
"New Coded Step"
HtmlButton button = WaitForElement<HtmlButton>();
Please provide more detailed information on the issue you are experiencing, so we can continue troubleshooting.
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.