Contributions
Re: WaitWindow is returning a window that doesn't match the selection criteria
Hi, thanks for the response. >It would be really useful if you couldtest this against TestComplete 14 if it's possible.< The test passed when last run with v14. The project has since been upgraded to v15 format as have my installations of TestComplete and TestExecute. There is no going back now. >Can you include details about the Window Class (WndClass) of the resulting object?< I'm having trouble parsing that question. What "details" are you looking for? Yes, there is a log warning about an ambiguous window recognition. Perhaps this screen capture will address the question: >What type of object is Aliases.Sys.Ezp.Session.Client? Is it a Window object?< Client is a WndClass MDIClient Best regards, John863Views0likes0CommentsWaitWindow is returning a window that doesn't match the selection criteria
When I'm expecting a stub object back from WaitWindow I'm instead getting a different window that doesn't match my WndCaption. I'm pretty sure this was working as expected until I upgraded to v15. My expectation is I get back a stub object with .Exists = False Does anyone know what's up with this? Thanks, JohnSolved874Views0likes3CommentsRe: Support for BCGControlBar's (from BCGSoft) methods/functions ?
Thanks for the ideas. There has been an interesting development. I found another TestComplete project created by someone else at my company where it is working. Now if there was only a way I could diff the Object Mapping between the two projects I think I would have my solution. Unfortunatly I don't see any way to easily diff them. Is the Object Mapping stored in a file somewhere? Best regards, John1.5KViews0likes1CommentRe: Support for BCGControlBar's (from BCGSoft) methods/functions ?
Hi Alex, thanks for the reply. I haven't tried adding anything to the object mapping because I'm not sure what and where to add it. I'm hoping that will be the easy solution to the problem if I can figure it out. Thanks again, John1.5KViews0likes3CommentsSupport for BCGControlBar's (from BCGSoft) methods/functions ?
Hi, our application uses aCBCGPToolBoxPage toolbox control from BCGSoft. I would like to be able to access the buttons in that control using the native methods/functions. Right now it's a black box to TestComplete. Does anyone have any experience or knowledge of how to accomplish this? Maybe adding an entry in the Object Mapping? Thanks, John1.5KViews0likes6CommentsRe: Python cluelessness with lists
I tried it without List() and iterating through the list and setting the index works fine. However, if I try to append to the list I get the SafeArrayWrapper error message. When I use List() the append works as expected. I have no clue why. As you suggested the result should be the same but in practice it's not.3.7KViews0likes0CommentsRe: Python cluelessness with lists
It looks like I figured it out. I changed : combos = [(dlg.FindAllChildren(QtClassName,"OnOneComboBox",7))] to combos = list(dlg.FindAllChildren(QtClassName,"OnOneComboBox",7)) Removing the brackets per your suggestion and adding "list" did the trick. Nowsetting the indexis working and I'm able to append to the list.3.8KViews0likes2CommentsRe: Python cluelessness with lists
Hi, thanks for the tip. Removing the brackets worksbut later when I want to append to the combos list/array it's not working. Following on from my example I tried something like this: combos.append (some_other_combo_here) That gives me the familiar error: "AttributeError" 'SafeArrayWrapper' object has no attribute 'append'. Any idea how I can successfully append to combos? Thanks, John3.8KViews0likes0CommentsRe: Python cluelessness with lists
Hi, thanks for the reply. I'm expecting combos[0] to return the combobox object at index zero in the combos list. Provided that happensQComboBox_setCurrentIndex(1)will select the second item in the combobox. The problem is I'm not getting an object back with combos[0]. Instead ofthe combobox object I'm getting a "SafeArrayWrapper". If I don't get the combobox back thenQComboBox_setCurrentIndex(1)will obviously fail. Also, I can't find any information in Python documentation regarding a "SafeArrayWrapper" object. My assumption is SafeArrayWrapper is a SmartBear/TestCompleteconstruct that doesn't exist nativelyin Python. I could be wrong about that though.3.8KViews0likes0CommentsPython cluelessness with lists
Hi, I'm trying to transition from VBScript to Python and having some trouble understanding lists in Python. What I'm trying to do is find all the comboboxes in a dialog and add them to a list. Once they are in the list I iterate through the list setting the indexes of the comboboxes. Unfortunately it's not working. Here is a simplified version of the code omitting the iteration through the list with a 'for' statement: dlg = some_dialog combos = [(dlg.FindAllChildren(QtClassName,"OnOneComboBox",7))] combos[0].QComboBox_setCurrentIndex(1) When I run the code I get this error: AttributeError: 'SafeArrayWrapper' object has no attribute 'QComboBox_setCurrentIndex' What is this "SafeArrayWrapper" business? Many thanks, JohnSolved3.8KViews0likes9Comments