Contributions
How do you wait for a page to load in TestLeft?
Hi, I'm using TestLeft with visual studio C#. I need to get my code to wait for the web page to load. I don't want to use hard delays (e.g. Thread.Sleep(2000) ). Does anybody have any examples of how to do this? Thanks, Jamie.8 years agoPlace TestLeft QuestionsTestLeft Questions2.1KViews0likes1CommentHow do i return a table from a sql server query using Testcomplete?
Hi, i'm trying to return a table from a sql server query. I have the folowing method but when i look at the results that are return i get the error = error: cannot perfom this operation on a closed dataset: function ReturnSqlQuery(sqlQuery, connectionString) { try { var query = ADO.CreateADOQuery(); query.ConnectionString = connectionString; query.SQL = sqlQuery; query.Open(); var queryResult = query; return queryResult; } finally { Log.Message("Closing the connection."); query.Close(); } }Solved2.1KViews0likes3Comments