UIAVerify and Inspect are showing different UI elements - c#-4.0

I'm trying to get some automated UI testing in place for a legacy MFC application. Using Microsoft's UI Automation library has been really smooth and easy in C# to get tests in place.
The MFC application under test contains a tab control as the "main" root element, and that tab control houses most of the application. There's also a few buttons outside the tab control. From a high level, the UI tree looks like this:
window
-Tab control <- most things live in here
-Button
-Button
-Button
-Button
Tabs are added to the tab control dynamically, but that has not been a problem for UI Automation.
However, there's 2 tabs in the application that do not have any controls listed in UI Automation or UIAVerify. The controls do show up in Inspect. There's nothing special about the problem tabs. They're the same as all the other tabs in the application.
Is there a reason why some parts of an MFC application won't show up in UI Automation or UIAVerify?

Related

Unable to get text that has no identifier inside pane with pywinauto

I have pane inside pane , identifiers are available till pane inside pane I want to get text.
Identifiers are as
Is there any way to get text having no identifier inside pane
It's impossible using MS UI Automation API (both Inspect.exe and pywinauto use it under the hood).
If it's .NET app, it could be possible in far theory by managed DLL injection. I'm aware about only this minimal proof-of-concept: https://github.com/vperevalov/WPFA (not tried yet).

Popup window inside a task pane add-in

I have a task pane add-in in Office.
I have an item in the task pane, and a delete button. Now, when users click on the delete button, I want to pop up a small window to ask if users are sure about the deletion. If yes, we continue; if no, we go back to the current page.
It is like the Window confirm() method for a web page.
Does anyone know how to pop up this small window in the task pane add-in?
Additionally, if I want users to choose an option in this popup window (eg, choosing a colour between blue or red) before continuing (let's forget yes or no), how could we realise this? More generally, is it possible to create a custom confirm box?
As you design and build web apps for Office 365 or add-ins for Office and SharePoint, you can take advantage of the Office UI toolkit to make your experience look and feel like Office. The Office UI toolkit has key plug and play components that will make it easy to create web experiences that connect to and integrate with Office.
One of the controls offered by Office Fabric JS package is Dialog which has a lot of customization. I believe you'll find one suitable for your task.
Yet another option is to use any UI package which has variety of UI controls, for example jQuery mobile. And finally you may just write your own control.

Custom widgets are not showing in the cq:dialog for touch ui

Hi I am working on touch ui, and converting the dialogs (page properties, dialog etc) into cq:dialog, normal cq widgets are getting converted automatically using the convertor tool.
We have many custom widgets which we are calling in the dialogs for configuring various page specific properties, these custom widgets are not showing up in the page properties dialog in touch ui mode whereas showing up in normal mode.
Can anyone give any pointers to resolve this issue.
If you have custom widgets created in Classic UI and need support for same in Touch UI, then simple answer is to create those Custom Widgets for Touch UI. Though Touch UI widget library is extensive, so look into library to see if any existing widget will match your requirement in touch ui.

Best practice in building outlook layout in asp.NET & telerik radpanelbar as a page arch?

I am working on enterprise apps, I am using telerik controls to make life easier ;)
The layout of my application on the left radpanelbar used for the navigation menu, on the right side is the content.
I want to make this navigation menu to navigate to a usercontrol (.ascx file) instead of a page (.aspx file)
The navigation control is in the master page.
I have multiple reasons to make this kind of navigation:
I have many user controls, and do not want to make pages (.aspx) as many user controls as I have.
Which is the most important I want to make this happen on the fly with out post pack (AJAX).
So please could any one tell about the best practice to do it.
One possible solution might be to load the navigation user control programmatically via AJAX when the user clicks a panelbar item. Still positioning this user control on the master page and loading it from the content page is quite odd to me and I personally do not approve it as a good architectural decision.

Able to take controls in parent window even after launch of another dialog using DoModal

I have an application which is created using MFC and I have created a MFC dll on click of a button the exe will call the dll which in turn will launch a dll using dialogClass.DoModal().
My Problem is even after this dialog I am able to access my parent application. which I should
not be able to access. Is there any setting for this . Can somebody help me on this
Sounds like you have created a modal-less dialog. If you create the same dialog as a modal pop-up dialog, then you should get the behaviour you have described.
This link should give you the information you are looking for: Using Dialog boxes
Other links that might be useful are:
Dialog box styles
Window styles

Resources