Contributions
TestComplete vs CEF – unable to navigate web objects
Hello community, I have a desktop application with embedded CEF (CefSharp.BrowserSubprocess.exe). The problem is that no object bellow the Chromium browser is reachable from TestComplete. I’ve already checked that CefSharp.BrowserSubprocess.exe is on the TestedApps list and at least one of the conditions under “Instrument CEF application” in https://support.smartbear.com/testcomplete/docs/app-testing/web/cef/preparing.html is true, as requested, but when I go to the object browser (or with the object spy) no page or object is identified. I’ve also tried to launch CefSharp.BrowserSubprocess.exe from TC as suggested by the “TestComplete Chromium embedded content detected” tooltip that shows when I try to pick an object with the object spy, with no different result. I’m using TestComplete v14.61.294 and CefSharp.BrowserSubprocess.exe / CefSharp.dll v99.2.90.0 Any ideas on to get TestComplete to be able to go past the Chromium browser? Thanks!581Views0likes1CommentRe: Unable to create table checkpoint from Web page table
tristaanogrewrote: Based upon the code that's there, you're not using FireFox. ;) So, what browser are you using? tristaanogrethat was it! I'm working with ie9 embeded on a desktop app. Changedthe codeaccordingly and it's now working good. Thanks a lot!2.3KViews0likes1CommentRe: Unable to create table checkpoint from Web page table
Thankstristaanogre, yes it's there! But when I try tocreatethe table checkpoint, after pointing to the table with the object selector I get an "Object needed" exception, although I'm sure I'm pointing to a table object.2.4KViews0likes4CommentsRe: Unable to create table checkpoint from Web page table
Hitristaanogre, I'm trying to use your version ofHTMLTableCheckpoint with no sucess. I can see the script extension is installed and active. If I understand correctly, by nowI should have already anicon in the Tools toolbar, but it seems nothinghas been added to the toolbar. What is it that I could be missing? Is it possible to invoke the html table checkpoint other than the saidtoolbar icon?Thanks. I'm using TC 12.5 on a win 8.1 machine and I've already rebooted since adding the script extension. I've also checked on system registry and I have msxml 3 and 6 installed.2.4KViews0likes6CommentsRe: Implement and Object-To-Object Mouse Drag capability for both script and keyword tests.
I've had a similar problem and solved it by first clicking the destination cell, then determining the mouse position on screen and use those coordinates for the drag operation. Something like this: function informedTreeDrag(tree,destinationTbl,dragobject,row,col) { tree.ClickItem(dragobject, skNoShift); var a = tree.get_MousePosition(); a.set_X(a.X - tree.ScreenLeft); a.set_Y(a.Y - tree.ScreenTop); destinationTbl.ClickCellXY(row,col,10,20,skNoShift); var b = destinationTbl.get_MousePosition(); b.set_X(b.X - tree.ScreenLeft); b.set_Y(b.Y - tree.ScreenTop); tree.Drag(a.X,a.Y,b.X-a.X,b.Y-a.Y,skNoShift); }13KViews0likes0CommentsRe: The object invoked has disconnected from its clients.
Thanks, I was getting to that same conclusion that it was somehow related to NameMapping loading - which in our scenario is an external file shared by several projects on the same suite. I've tried to figure out what was going on by changing the instruction(s) that are throwing the error, to target the objects being manipulated directly by it's full path instead of using it's alias and those instructions are no longer in error. My gess is that whenever on the test sequence we're jumping between projects, there's a big probability of getting that error, except when it coincides with the internal refresh of NameMapping. I'll give a try to RefreshMappingInfo to see if it solves the problem. Thanks.3.9KViews0likes0CommentsThe object invoked has disconnected from its clients.
I've recently upgraded from TC10.20 to TC12.40. All my tests were running smoothly on TC10. Since I moved to TC12.40, I can only randomly initiate my tests without getting an error message with the text "The object invoked has disconnected from its clients", followed by an exception. I know this has been an issue in TC 9.1, but I cannot find a solution to it. Does anyone have any idea of what can be happening and how to solve this? Thanks.Solved4KViews0likes3Commentsupdate recorded tests after enabling extended silverlight object tree
Hi! I'm testing a desktop application that has an internal web server and some features have been developed on a mix of Html and Silverlight. I've already recorded a few hundred tests, but now I came across a feature that uses a ComponentOne grid on Silverlight. After several atempts to control the grid, the only solution a found was to turn on the 'Extended Silverlight object tree' option on the project properties and access the grid via script. The problem is that now all the recorded tests before turning on the 'Extended Silverlight object tree' are no longer working because the Silverlight objects 'path' has changed and TestComplete is no longer capable of recognizing it! So, my question is if there is a way to update that 'path' other than having to re-record all those tests again. Thank's!708Views0likes1CommentRe: If Object Exists test action not working
Yes, I think I have mapped the top level item of the message box popup correctly. The message entry on the Test log is "The test execution was interrupted.". It seems that Test Complete just keeps waiting for the message window to pop up until the time runs out and then halts execution. Anyway, I've now found a workaround it: I've added a code snippet with the Find method to check if the process child window message exists [ TestObj.Find(PropNames,PropValues,Depth,Refresh).Exists ] and then use the If...Then statement to check the Last Operation Result. It works. Thank you for your reply.2.7KViews0likes0CommentsRe: If Object Exists test action not working
I'm having the same kind of trouble with this "If Object Exists" test action on keyword tests too. During testing, depending on certain previous conditions, I may or may not get a windows message asking if you want to proceed. If the message pops up, I want to click yes and proceed with the test; if the message doesn't pop up, I just proceed as expected. So, I put up a"If Object Exists" check for the message box... It's working fine when the message box pops up, but if it doesn't show up, the test just stops and logs a "The test execution was interrupted." message. On the Additional Info tab I get the following message: "Possible reasons: - An error or warning occurred during the test run. See the preceding log entries to locate and identify the error. - The test run was stopped manually. - The test run was terminated as a result of the Runner.Halt method call. " I don't want to disable the stop on error option. The whole point of using the "If Object Exists" check is precisely to avoid getting a unexpected object error. Any ideas on what I may be missing? Thanks.2.8KViews0likes2Comments