Jump to content

infragistics + autoit


codeninja
 Share

Recommended Posts

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

Link to comment
Share on other sites

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 by Exit

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

The Infragistics Silverlight and WPF suites of controls supports Microsoft UI Automation. You find an AutoIt implementation of the UI Automation interfaces here.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...