cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
Occasional Contributor

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
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Staff

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

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?

View solution in original post

2 REPLIES 2
Highlighted
Staff

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

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?

View solution in original post

Highlighted
Occasional Contributor

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

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.
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
A new challenge is here!

Create a function to drag one element to another for the TechCorner tag!

Will you dare to take the challenge?


Scripts created in July:
- Passing custom command-line arguments as a test parameter
Top Kudoed Authors