Contributions
Re: Regular Expressions in JavaScript not working
I will give that a try. However, I do notice a pattern here. Only recently have I been having issues with the use of Regular Expressions in TestComplete, both native and non-native. Each time when I would look through the posts on the community boards dealing with RegExp, the solutions (mostly from the mods) would almost exclusively steer the posters from using RegExp. I know that the TestComplete docs state that we can use RegExp in our code and the many ways to do it. If there is some issue with Regular Expressions in TestComplete, then we need to be notified and told how to workaround it. For many of us, using Regular Expressions is a straightforward way to get what we need done.2.4KViews0likes3CommentsRegular Expressions in JavaScript not working
Hello, I am trying to use the native Regular Expression with Javascript to find a particlar TextNode in a SVG object. I have been trying the following code, but still do not get a matching result: var sectionTest; var sectionTest1; var testText = "TextNode(5)"; var testText1 = "TextNode\(\d+\)"; var sectionRegExp = new RegExp(testText); var sectionRegExp1 = new RegExp(testText1); for(var tabLoop = 0; tabLoop < 1; tabLoop++) { broadAssetChartPath.Panel(tabLoop).Panel("chart*").Panel(0).SVG(0).Refresh(); sectionCount = broadAssetChartPath.Panel(tabLoop).Panel("chart*").Panel(0).SVG(0).ChildCount; for(sectionLoop = 0; sectionLoop < sectionCount; sectionLoop++) { sectionCheck = broadAssetChartPath.Panel(tabLoop).Panel("chart*").Panel(0).SVG(0).Child(sectionLoop); sectionTest = sectionRegExp.test(sectionCheck.Name); sectionTest1 = sectionRegExp1.test(sectionCheck.Name); Log.Message(sectionCheck.Name); Log.Message(sectionTest); Log.Message(sectionTest1); if(sectionTest == true || sectionTest1 == true) Log.Message(sectionCheck.Name + ":" + sectionCheck.contentText); } } The Children of the SVG object have TextNodes with Names from 0-12 and with some "id_#". I am not sure what I am doing wrong here. As far as I can tell the RegExp is correct and should return a match. Any help is welcomed. Thanks.Solved2.5KViews0likes8CommentsRe: TestComplete Using Chrome - Unable to find the object BrowserWindow(0)
Hello TanyaYatskovska, Using your suggestion, I changed the order of the priority of objects and moved NativeWebObject and ChromeWebObject to the top. I stopped getting the BrowserWindow error and started getting the invisible desktop error. I pulled up a solution that had me update the registry for the Remote Desktop being minimized. Thanks2.5KViews1like1CommentRe: TestComplete Using Chrome - Unable to find the object BrowserWindow(0)
Hello AlexKaras, Here is the info you requested... TestComplete Version: 12.60.5545.7 Chrome Version: 69.0.3497.100 TestComplete was reinstalled after Chrome update. There have been no patches applied.4.8KViews0likes9CommentsRe: TestComplete Using Chrome - Unable to find the object BrowserWindow(0)
Hello cunderw, I looked over the steps that you suggested. I am properly configured, I have been able to run on Chrome in the past. I have some steps that use the BrowserWindow object because it contained actions that I required to use.4.8KViews0likes0CommentsTestComplete Using Chrome - Unable to find the object BrowserWindow(0)
Running TestComplete using the Chrome browser, when Chrome is first started, a blank screen is shown for a variable amount of time ("White Screen of Death"). After adding steps to get around this, when I get to the page I want to work with, I keep getting the following error: Unable to find the object BrowserWindow(0). See Additional Information for details. The object "BrowserWindow(0)" does not exist. Afterward, multiple step fail that have the BrowserWindow(0) object. I am not sure how to get around this. I was able to collect an object snapshot. Instead of BrowserWindow(0), I get something like the following: Window("Chrome_WidgetWin_1", "WEBPAGE- Google Chrome", 2)Solved5.8KViews0likes15Comments