Forum Discussion

eac's avatar
eac
Occasional Contributor
11 years ago

How can I make invisible item buttons be visible and can be clicked?

My testing .NetUI applicaion  have a  Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea which has many Item buttons. For example, this button item(24) is invisible and can not be clicked.



Obj.Toolbars_Dock_Area_Top.ToolbarsManager.Toolbars.Item(0).Tools.Item(24).VisibleResolved = false



Could you please let me know which method can make it visible then it can be clicked?



I have tried BringIntoView and OnActivate, but not working....



Thanks
  • How it can be done by hand? Can you scroll to the needed button? Or maybe you need to click somewhere to make this button appear. You just need to simulate the same actions in your test.

    Did you tried to record such action?
  • How it can be done by hand? Can you scroll to the needed button? Or maybe you need to click somewhere to make this button appear. You just need to simulate the same actions in your test.

    Did you tried to record such action?
  • eac's avatar
    eac
    Occasional Contributor
    Thanks hanya,



    I just figured out, for my case:



    When Obj.Toolbars_Dock_Area_Top.ToolbarsManager.Toolbars.Item(0).Tools.Item(24).VisibleResolved = false



    If use 
    Obj.Toolbars_Dock_Area_Top.ClickItem("[0]|" & ButtonName, 0) to click the invisible button, it will failed.



    But use Obj.Toolbars_Dock_Area_Top.ToolbarsManager.Toolbars.Item(0).Tools.Item(Button_index).OnToolClick, it will work.