codeninja Posted December 17, 2013 Posted December 17, 2013 Hi Geeks, I am very new to AutoIt. Currently, I am trying to write automated testing framework for windows application form. Unfortunately, Many commands are returning unexpected results. For example, i am trying to switch infragistics tab index from 0 to 1 by using following script but it never works $tab = ControlGetHandle("Title", "", "[NAME:ultraTabControl1]") _GUICtrlTab_SetCurSel($tab, 1) I guess that AutoIt does not capable to handle infragistics controls. is it true? Thanks, --SJ
Exit Posted December 17, 2013 Posted December 17, 2013 (edited) Welcome to the forum. You should provide more information, so we can help you. - Post your FULL script. - Post URL or program name, so we can test your script. - Show the console output of your test, so we can guess about the error. My first guess is: Your window title does not contain the literal "Title". BTW: This thread would better fit into the "General Help and Support" forum. Edited December 17, 2013 by Exit App: Au3toCmd UDF: _SingleScript()
LarsJ Posted December 17, 2013 Posted December 17, 2013 The Infragistics Silverlight and WPF suites of controls supports Microsoft UI Automation. You find an AutoIt implementation of the UI Automation interfaces here. Controls, File Explorer, ROT objects, UI Automation, Windows Message MonitorCompiled code: Accessing AutoIt variables, DotNet.au3 UDF, Using C# and VB codeShell menus: The Context menu, The Favorites menu. Shell related: Control Panel, System Image ListsGraphics related: Rubik's Cube, OpenGL without external libraries, Navigating in an image, Non-rectangular selectionsListView controls: Colors and fonts, Multi-line header, Multi-line items, Checkboxes and icons, Incremental searchListView controls: Virtual ListViews, Editing cells, Data display functions
codeninja Posted December 18, 2013 Author Posted December 18, 2013 Welcome to the forum. You should provide more information, so we can help you. - Post your FULL script. - Post URL or program name, so we can test your script. - Show the console output of your test, so we can guess about the error. My first guess is: Your window title does not contain the literal "Title". BTW: This thread would better fit into the "General Help and Support" forum. Hi, Thanks for your replay, i will create my new post at General Help and Support. following script can do the tab right option ControlCommand ("Title", "","[NAME:ultraTabControl1]" ,"TabRight", "") but the above mentioned script, $tab = ControlGetHandle("Title", "", "[NAME:ultraTabControl1]") _GUICtrlTab_SetCurSel($tab, 1) can not do the tab selection with respect tab index. For both cases, i am using infragistics tab control as well as "Title" is my window name Can you help me to find this issue?
codeninja Posted December 18, 2013 Author Posted December 18, 2013 Try _GUICtrlTab_ActivateTab()? Hi , thanks for your response, i have tried following script but tab index remains same state _GUICtrlTab_ActivateTab("[NAME:ultraTabControl1]", 1) ; and it returns 0 FYI, i also tried following functions _GUICtrlTab_ClickTab(),_GUICtrlTab_FindTab(),_GUICtrlTab_GetItem(),_GUICtrlTab_GetImageList() and it returned either 0 or -1 Can you provide some other technique to change the tab index. --SJ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now