ContributionsMost RecentMost LikesSolutionsRe: How to set the encoding for a rest mock response Hi nmrao OS is windows 7 file.encoding=Cp1252 regards How to set the encoding for a rest mock response Hi, how can i set the encoding of a Rest Mock (JSON) response to UTF-8 Best regards Re: Array Type mismatch in javascript Hi Robert .$get is working! best regards Re: Array Type mismatch in javascript Hi Robert Thanks for the fast answer, but.... if i use the toArray() function, i get a type mismatch function test() { var test = Aliases.browser.MainPage.contentDocument.script.csGetControlValue("ctrlInterestRateTypeSleList"); var test1 = test.toArray(); } TypeError test.toArray is not a function Error location: Unit: "FMP_TC_Suite\FMP_TC_Project\Script\test" Line: 7 Column: 18. TypeError test.toArray is not a function Error location: Unit: "FMP_TC_Suite\FMP_TC_Project\Script\test" Line: 7 Column: 18. In the browser, i get: best regards Re: Array Type mismatch in javascript Sorry Robert One additional question please. Now i have just the opposite situation. With the function csGetControlValue i get an array, but i cannot read the items. I think the format of the return value is the same as i have to use for setting the value. maybe you know a solution for this problem, too? best regards Re: Array Type mismatch in javascript Hi, thank you!! works perfect!! best regards Array Type mismatch in javascript Hi, if i call this function csSetControlValue("ctrlInterestRateTypeSleList",['003','004']) in the chrome console (F12) it work correct. But if i try to call this -> Aliases.browser.MainPage.contentDocument.script.csSetControlValue("ctrlInterestRateTypeSleList",['003','004']) from Testcomplete Javascript, i get an type mismatch error. If i provide a single string instead of an array it works. -> Aliases.browser.MainPage.contentDocument.script.csSetControlValue("ctrlInterestRateTypeSleList","003") Maybe someone can help me. best regards Horst SolvedRe: sendmail not working in Testcomplete 12.0.122.7 Thank you! :) sendmail not working in Testcomplete 12.0.122.7 Hi, we use sendmail on the end of all our scripts. But, in the new version, sendmail is not working anymore. i always get : Error message: "Abstract Error" is there something different in the new version? regards Horst SolvedRe: Find and FindChild extremely Slow in Chrome (when looking at contentText property) For testing our application we need the FindChild funtionality very often. But with Chrome we have a big performance problem: TC Version 11.31.2420.7 Is there any solution to get a better performance with chrome? Firefox = OK var StopWatch; StopWatch = HISUtils.StopWatch; StopWatch.Start(); var pageObj = Sys.Browser("firefox").Page("http://u020:23380/CRM/*").FindChild("contentText", "Qnotiz_2805_VK_01", 500, true); StopWatch.Stop(); Log.Message("Firefox Execution time: " + StopWatch.ToString()); Firefox Execution time: 00:00:00.390 Internet-Explorer, slower but ok var StopWatch; StopWatch = HISUtils.StopWatch; StopWatch.Start(); var pageObj = Sys.Browser("iexplore").Page("http://u020:23380/CRM/*").FindChild("contentText", "Qnotiz_2805_VK_01", 500, true); StopWatch.Stop(); Log.Message("Internet Explorer Execution time: " + StopWatch.ToString()); IE Execution time: 00:00:00.530 Chrome,takes 10 time longer var StopWatch; StopWatch = HISUtils.StopWatch; StopWatch.Start(); var pageObj = Sys.Browser("chrome").Page("http://u020:23380/CRM/*").FindChild("contentText", "Qnotiz_2805_VK_01", 500, true); StopWatch.Stop(); Log.Message("Chrome Execution time: " + StopWatch.ToString()); Chrome Execution time:00:00:05.148