see an error : running the script selects other currency instead of cad.
please let me know whats wrong with the below code
run the below code:
checkedPopupContainerForm = framework.CheckedPopupContainerForm;
popupCheckedListBoxControl = checkedPopupContainerForm.PopupContainerControl.PopupCheckedListBoxControl;
Without knowing more about the specifics of the control in question, I don't see anything explicitly wrong with the code.
Just a few questions:
1) What is the reason for using "Keys" to select the item from the control list? Is there a method like "ClickItem" or something similar?
2) If it's a checklist box control, then there may be other methods. According to https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/desktop/dev-express/..., there may be a method of "CheckItem" which will set the state of a particular item in the checklist box. Have you investigated other methods?
3) Let's get down to it. What type of control is it? Can you post screenshot of properties and method so we can assist further?
If it is in fact a Dev Express CheckedListBox control, please reference the following documentation and verify all the requirements are met as well as double check the version of both your version of TC as well as the version of Dev Express. The linked document is for TC 12.50 so keep this in mind as well.
I checked the version of TC and Dev . Its on latest versions. any ideas, not able to figure it out, some of the methods like clickitems , check items are missing on my Testcomplete versions.
Having Dev Express on the latest version is not necessarily the right answer. Reference the link I sent you. There are certain Dev Express version numbers supported by TC... if you are using a Dev Express version LATER than what's documented there, you may not get things to work. Please verify that you are using a version of Dev Express that is compatible with TC 12.5
how can I check the dev express versions and update the version compabtible to TC 12.50.
In common I only see the devexpress control is checked.
That is something you will have to check with the developers of the application that you are testing. They should be able to tell you what version of the Dev Express WinForms controls they are using in their application.
There's nothing explicitly different between TC 12.50 and TC 12.42 with regards to interaction with Dev Express objects. Again, go back to that link that I noted and make sure that all requirements are met, including making sure plugins and such are turned on, that objects are checked and available in your project., etc. If it's working for your colleague, then it's something in your configuration of TC on your machine that needs research.