ContributionsMost RecentMost LikesSolutionsRe: Interrupt for ScreensaverDon't care too much about screensaver. I need to prevent the system from entering sleep or turning off the display. MSDN says this function (SetThreadExecutionState) should help, but I have no idea how to make it working: http://msdn.microsoft.com/en-us/library/windows/desktop/aa373208(v=vs.85).aspxRe: Interrupt for Screensaverfunction DisableScreensaver() { kernel = DLL.DefineDLL("kernel32"); Lib = DLL.Load("c:\\Windows\\System32\\kernel32.dll"); proc = kernel.DefineProc("SetThreadExecutionState", vt_void); Lib.SetThreadExecutionState(); } Looks like this is what I need, but this code rises an exeption: --------------------------- TestComplete --------------------------- JScript runtime error. An exception occurred: 0xC0000005; class: ; description: '' --------------------------- OK --------------------------- Any ideas why this is happening?Re: Running existing scripts across multiple browsersIn my test scripts I completelly rejected name mapping. Instead I find elements dynamically using xpath http://support.smartbear.com/viewarticle/29598/ it's a little bit slower to code, but works across all browsers and is much easier to support.Re: Screenshots in chrome still failYou may try to allow some color tolerance http://support.smartbear.com/viewarticle/27293/Checking for server response There is a very simple web app. When a user navigates to it in their browser, the page (javascript) makes an ajax (xhr) request to a server and writes the response to the page. The server returns a random integer value. In TestComplete I need to verify that the text on the page is equal to server's response. Any ideas how to do this? Basically this is the same question I posted in this thread: http://smartbear.com/forums/f75/t77061/waiting-for-a-resource-to-be-loaded Thanks. Re: [Bug?] NativeWebObject.Find fails in Chrome 24 and Firefox 18Yes I use testcomplete 9.20. This still doesn't work on my end, but I completelly switched to xpath, which is more flexible and seems to work better. Re: How to handle ActionScript errors displayed by Flash Player Too bad, I wrote to SmartBear support two months ago but still haven't got any workable solution. In the "Working With Files From Scripts" article I don't see any notifications functionality. Can you explain how can I watch for a file change? Obviously reading file (or checking its date) in a loop is not an acceptable approach. Re: [Bug?] NativeWebObject.Find fails in Chrome 24 and Firefox 18It does not work in Chrome 24 and Firefox 18. It does not work in Chrome 25 and Firefox 19 even with the patches. Would you like to run the script on your end?Re: Changing Browser Mode of Internet ExplorerI haven't tried yet, but this does not seem to work on non-English Windows and if you call the function when F12 menu is already opened. Am I right?Re: Changing Browser Mode of Internet Explorer Can somebody please test this function on different systems and report back if it's working? I guess Window("ToolbarWindow32") will fail on x64 systems. function switchIEBrowserMode(browser_mode_id) { var menu_items = { "ie7": "Internet Explorer 7", "ie8": "Internet Explorer 8", "ie9": "Internet Explorer 9" }; if(!browser_mode_id in menu_items) return -1; var browser = Sys.Browser("iexplore"); var browser_window = browser.BrowserWindow(0); var toolbar = findIEDevToolsMenu(browser_window); if(!toolbar || !toolbar.Visible) { browser_window.Keys("[F12]"); toolbar = findIEDevToolsMenu(browser_window); } toolbar.ClickItem(9); // click on "&Browser Mode:*" menu item toolbar.PopupMenu.Click(menu_items[browser_mode_id]); browser_window.Keys("[F12]"); function findIEDevToolsMenu(ieWindow) { var devToolsMenu = ieWindow.Find("WndClass", "IEDEVTOOLSMENU", 1000); if(!devToolsMenu || !devToolsMenu.Exists) return false; return devToolsMenu.Window("ToolbarWindow32"); } } function switchIEBrowserMode_UnitTest(){ switchIEBrowserMode("ie8"); }