none
Unable to Find Charms Bar using CodedUI

    Question

  • I am unable to find the Charms bar(on windows app) control using DirectUIControl in CodedUI.

     DirectUIControl charmsbarHwnd = new DirectUIControl();
     charmsbarHwnd.SearchProperties[UITestControl.PropertyNames.ControlType] = "Window";
     charmsbarHwnd.SearchProperties[UITestControl.PropertyNames.ClassName] = "NativeHWNDHost";
     charmsbarHwnd.SearchProperties[UITestControl.PropertyNames.Name] = "Charms";
     charmsbarHwnd.WaitForControlReady();

    charmsbarHwnd.WaitForControlReady();

    Also tried providing parent as DirectUIControl.Desktop.

    Can anyone help me on this.


    • Edited by suchismita Monday, April 07, 2014 1:38 PM
    Monday, April 07, 2014 1:22 PM