ContributionsMost RecentMost LikesSolutionsRe: "this" keyword undefined in a class methodTony, I saw that in the documentation. However, when I went to implement it, the "intellisense" equiv in TestComplete had "this" as a keyword, not "This". Foolishly, I thought this was a type in the SDK documentation for javascript. I just altered my code to "This" instead of "this" and it is working correctly. Thank you for the input. I will file this as an IDE bug with AQA. Jim "this" keyword undefined in a class method I have run into an interesting problem. I have a heavily ODT based project in which I dynamically build a test case object on the fly. One of the properties of the object is an array of class objects. Below is a sample (hard coded for illustration purposes). // Now, populate the test case with the printer object data and install the drivers. for (var nPrinterObject in rgPrinterObjects) { var rgSplitPrinterObject = rgPrinterObjects[nPrinterObject].split("|"); oTestCase.rgPrinterObjects.AddItemOfClassType("clsPrinterObject"); oTestCase.rgPrinterObjects(nPrinterObject).sDriverModel = rgSplitPrinterObject[0]; oTestCase.rgPrinterObjects(nPrinterObject).sInfPath = rgSplitPrinterObject[1]; oTestCase.rgPrinterObjects(nPrinterObject).sPortType = rgSplitPrinterObject[2]; oTestCase.rgPrinterObjects(nPrinterObject).sPortAddress = rgSplitPrinterObject[3]; oTestCase.rgPrinterObjects(nPrinterObject).sPrinterName = rgSplitPrinterObject[4]; oTestCase.rgPrinterObjects(nPrinterObject).Install(); } If I break into the debugger, all of the properties of Item0 in my array are set (sDriverModel, sInfPath, etc...). If I break into the code in the Install() method of clsPrinterObject, the "this" keyword is undefined. According to the documentation, what I am doing should work and I am unfortunately blocked from progressing in the implementation until I can get past this. Office 2010 Interaction / AutomationI have written a rather extensive framework for testing applications (ODT based, abstracted classes, etc...) and am in the process of incorporation Office 2010 into the framework. The vast majority of the operations in the application have not changed since Office 2007 (most are hotkey based), but I have run into some trouble interacting with the print dialog box of any Office 2010 app. What appears to be happening is that the ComboBox that you use to select your printer: Sys.Process("WINWORD").Form("test.docx -").Window("FullpageUIHost").Window("NetUIHWND").Pane("Backstage view").Client(0).Pane("Print").Grouping("Print").Grouping(0).Client(0).ComboBox("Which Printer") Is implemented differently than the actual list of items in the ComboBox. Below is what I get when I use the object browser on an individual combobox item: Sys.Process("WINWORD").Window("Net UI Tool Window", "", 1).Panel("Which Printer").List("Which Printer").Client(0).ListItem("My Printer") The problem is that for the life of me I cannot get ClickItem() on the combobox to actually change the selection, either by name or index. I have tried MSAA both in the new mode and in the legacy mode but to no avail. I have tried giving focus to the combobox, calling click() on it first to open it, etc... but nothing I do actually allows me to intelligently change the box. I am theorizing that I could probably open it and then walk each item looking for the string I want to select, but this is a really kludge solution. Can anyone shed some light on this dilema? Thanks, Jim .Process("WINWORD").Form("test.docx -").Window("FullpageUIHost").Window("NetUIHWND").Pane("Backstage view").Client(0).Pane("Print").Grouping("Print").Grouping(0).Client(0).ComboBox("Which Printer")Is implemented differently than the actual list of items in the ComboBox. Below is what I get when I use the object browser on an individual combobox item:.Process("WINWORD").Window("Net UI Tool Window", "", 1).Panel("Which Printer").List("Which Printer").Client(0).ListItem("My Printer")The problem is that for the life of me I cannot get ClickItem() on the combobox to actually change the selection, either by name or index. I have tried MSAA both in the new mode and in the legacy mode but to no avail. I have tried giving focus to the combobox, calling click() on it first to open it, etc... but nothing I do actually allows me to intelligently change the box. I am theorizing that I could probably open it and then walk each item looking for the string I want to select, but this is a really kludge solution.Can anyone shed some light on this dilema?Thanks,Jim