Contributions
How to find object(s) with conditions on numeric properties, like “>x”, “<x”, “not 0", etc. ?
Hi, Consider a script example: >>> results = myObject.FindAll( ["contentText", "ChildCount"], ["Employer", << greater than 5 >>] ); How to implement the red part in above query, where we're interested in finding all objects with certain contentText & ChildCount>5, or any such numeric conditions ? I'm using TC v15.40.421.7 Thanks.Solved324Views0likes1CommentRe: Edge not recognized as Sys.Browser("edge") -> Process("MicrosoftEdge")
Hi Andy, Are you still having problem with latest Edge ? In my case initially TC v12.42 didn't work with Edge, but then I disabled the"Windows Store application" flag & since then it started working. Interestingly even if I enable OR disable this flag, it always works now:smileysurprised: cheers !2.9KViews0likes1CommentRe: Edge not recognized as Sys.Browser("edge") -> Process("MicrosoftEdge")
Hi Alex, Dmitry, Hoping to get thisfix soon:smileyhappy: Today I upgraded my Windows 10 & stumbled across Edge issue. I'm thinking to revert back the windows 10 version until the TestComplete fix gets released. Cheers!4.1KViews0likes10CommentsHow to integrate TestComplete v12.4 x64 bit version with Perforce ?
I upgraded to testcomplete v12.4 x64 but it does not work with "Perforce plug-in for SCC" because this was a x32 bit 2012 version. Now should I install testcomplete v12.4 x32 bit version instead or is there a way to integrate perforce with testcomplete x64 bit ? PS: I additionally installed "Perforce Surround SCM" 64 bit client, but no success with new testcomplete892Views0likes1CommentRe: BrowserWindow() index value is inconsistent
Thanks Colin, pls find my comments inline. Colin_McCrae wrote: So, you need to be able to tell two popup windows apart? [Varun]: yes, indeed Unfortunately, the VM I run TestComplete on is a Win 7 one. So I don't have Edge installed on it. I think you can install Edge on Win 7, but if you're running it on Win 10, I may well not get the same results. So I can't check for myself but ..... [Varun]: Yes, I'm using Win10 indeed. Is there no obvious way of telling them apart? [Varun]: Could not get an easy way, but trying out workaround mentionedbelow. Obviously, IE is different. I just had a quick look at that and an authentication popup does not have it's own BrowserWindow object. There is only one of those. And the Page, BrowserWindow and Popup are all child objects of the IE process. So I guess they've changed how these are presented in Edge. [Varun]: Just checked, my application is showing separate Page, BrowserWindow for pop-up's in both IE & Edge, all being child objects of IE/Edge process. May be its application dependent then. In IE, the popup has a caption. Does the Edge version not contain something similar? [Varun]:In IE, the 'WndCaption' property is showing correct & separate values for all windows, but in Edge it's just showing 'Microsoft Edge' for all windows. May need to dig down into the child objects a little but I'd hope there was something in there you can use? [Varun]:Digging down I do see a 'UIAObject()' object with 'text' & 'value' properties having the page URL as it's value, which I'm now trying to use as the workaround check. I take it of the three "pages" in your last set of screenshots, two of those are actually popup windows? [Varun]: yes, indeed. In which case, can you not just use the "Close" method as HKosovasuggested? [Varun]:No, I have to do other operations as well on those pages, like clicking buttons & keying texts The page objects are always going to be much simpler to tell apart than the BrowserWindow objects. And certainly, the three pages in your screenshot look easy enough to tell apart? [Varun]:Indeed, I tried page object too butBrowserWindow worked best for me. The complications started when I noticed the BrowserWindow index value was not persistent. Is this all because of the other issue you linked to? [Varun]: yes, indeed. So if you pass it the page, the page finds the button, but fails to click it as the position is reported incorrectly? [Varun]: yes, indeed. Any possibility you could use a hotkey instead? (ESC will usually kill a popup window ...) [Varun]: No, unfortunately, many fields on the page are not accessible by hotkey.4KViews2likes1CommentRe: BrowserWindow() index value is inconsistent
Hi Helen, Thanks for the reply. Your question is very valid. I resorted to using theBrowserWindow object only due to some other issue with TC running on my application with Edge, where I am not able to get correct objects' coordinates in Edge pop-up windows. So as a workaround I had to use "BrowserWindow(n).Click(Button.Left ±offset, Button.Top ±offset)", while interacting with any buttons inside pop-up. I tried using page object also, butBrowserWindow worked best. regards, Varun4KViews0likes6CommentsRe: BrowserWindow() index value is inconsistent
Hi Colin, Thx for the reply. We are trying to maintain generic functions to handle any window, either main or pop-up, by just passing its page object as parameter. Yes, I have to find an indirect way of getting browser window from browser page. We do get correct page object, but there is no direct way to get its corresponding window as many windows have same childcount. regards, Varun4KViews0likes8CommentsRe: BrowserWindow() index value is inconsistent
Hi Robert, Thanks for the reply. I too thought of using childcount check to find the required window, but in one of the situations, there is 2nd pop-window (freezing the main window 'and' 1st pop-up) who has same childcount, hence complicating the situation. Attaching screenshots for this situation. Note that we are not using NameMapping. regards, Varun4KViews0likes10CommentsBrowserWindow() index value is inconsistent
Hi, I'm using TC v12.10.602.7 with Edge browser. When I click on a button on my Application, it open a secondary pop-up window and main window gets freezed. Sometimes this window is BrowserWindow(1) with index '1' & sometimes it isBrowserWindow(0) with index '0'. It's always the front most window, so I'm not able to understand this inconsistency of index value among main window & pop-window. Attaching 4 screenshots for both situations. Did anyone face such problem ? thanks & regards, Varun4.6KViews0likes12Comments