Forum Discussion

srijansameer11's avatar
srijansameer11
New Contributor
4 years ago

Need to navigate to an MSAA object which is not available on the view and Click it

Hey,

I am using the following code snippet to navigate to an object that is down the scrollable window and trying to click it, but it is not accepting the method ScrollIntoView()

Can anyone suggest to me how can I achieve the same?

 

**menuItem2 id being dynamically passed from the function call.

 

var obj = Sys.Process("abc").WinFormsObject("ApplicationForm").WinFormsObject("toolStripContainer1").WinFormsObject("ToolStripContentPanel"""1).WinFormsObject("splitContainer1").WinFormsObject("SplitterPanel"""1).WinFormsObject("panelNavigationArea").WinFormsObject("navigationPanel").WinFormsObject("panelNavigationContainer").WinFormsObject("NavigationPanel").WinFormsObject("applicationTreeView").MSAAObject("outline").MSAAObject("table_Data_Panel").Find("Value", menuItem2 ,"999");

 

obj.ScrollIntoView(true);

 

obj.Click();

 

 

 

Thanks

Srijan Sameer