Note: ControlType.Text has no supported patterns
I have tried with following steps to get "PreferredWidth" and it is not supporting
Step1:-
private GetLabelPreferredWidth()
{
AutomationElement objElement = objMainWindow.AutomationElement;
PropertyC
ondition cond = new PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Text);
AutomationElement textProvider = objElement.FindFirst(TreeScope.Descendants, cond);
}
Note:
I need to get the “PreferredWidth” from the “textProvider”. But it is not available
I have tried with following steps to get "PreferredWidth" and it is not supporting
Step1:-
private GetLabelPreferredWidth()
{
AutomationElement objElement = objMainWindow.AutomationElement;
PropertyC
ondition cond = new PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Text);
AutomationElement textProvider = objElement.FindFirst(TreeScope.Descendants, cond);
}
Note:
I need to get the “PreferredWidth” from the “textProvider”. But it is not available