Contributions
Javascript toLocaleString
I have:- var numb = 1234.5678; var frmt = numb.toLocaleString('de-DE', { style: 'currency', currency: 'EUR',minimumFractionDigits: 2, maximumFractionDigits: 2}); I expect frmt to be1.234,57 € But frmt is "1234.5678" - just a string version of the float. Does TC supporttoLocaleString?986Views0likes1CommentRe: Re: Chrome - Unable to navigate
Yes, I am getting this as well. TC 12.42.3048.7 x64 Randomly, I'll get an exception panel shown with an exception (ctutil.dll i think). Clicking 'Send' for the error details doesn't work and it states to send manually. When this happens I just re-run TC and it is OK. However, I've found that launching TC often takes 2-3 'goes' before it actually launches. Click 'Test Complete 12' in start to start TC and nothing happens (In task manager, a 'consent.exe' process starts but nothing happens on UI). Try a couple of times and eventually the TC splash is shown and TC starts. Possibly related?1.1KViews0likes1CommentRe: Chrome - Unable to navigate
Hi, It is totally random. Sometimes it occurs when executing directly after a reboot. My 'workaround' is to kill all TC related processes in Task Manager and the relaunch TC. After 2 or 3 cycles of this, TC eventually starts navigating OK. TC Version: 12.42.3048.7 x64 Chrome:64.0.3282.140 x64 Chrome instances are being terminated fully prior to opening. Also, the times directly after a reboot (where TC and the execution of the test is run as the first thing; no other program or Chrome run prior) have no Chrome beforehand. Please see the code snippetin OP.1.4KViews0likes1CommentChrome - Unable to navigate
I have script that closes all browsers, opens Chrome and then navigates to a URL; while (Sys.FindChild("ObjectType", "Browser").Exists) { Log.Message("Found a browser calling Terminate"); Sys.FindChild("ObjectType", "Browser").Terminate(); Sys.Refresh(); } Browsers.Item(btChrome).RunOptions = "--incognito --disable-session-crashed-bubble --disable-infobars --disable-password-generation --clear-token-service --ignore-autocomplete-off-autofill"; Browsers.Item(btChrome).Run(); OpenBrowser("Chrome"); Sys.Browser().BrowserWindow(0).Maximize(); Browsers.CurrentBrowser.Navigate("https://url.to.where.I.go", -1); Browsers get closed nicely, Chrome is opened nicely and maximizes. However the Navigate url results in the Browser and not doing anything and the TC monitor shows "Waiting for page('*')". When it gets like that I have to kill TestComplete (closing makes it hang) and then in Task Manager kill all related processes. What is causing that? Why does TC decide randomly to not navigate to the URL?1.5KViews1like4Comments