Пример #1
0
    public void Test_create()
    {
        UICondition uICcreate = UICondition.Create("@Name='create'", new Object[0]);
        UIObject    uIoCreate = this.Descendants.Find(uICcreate);
        Window      objcreate = new Window(uIoCreate);

        objcreate.Click();


        UICondition uI3x3  = UICondition.Create("@Name='3x3'", new Object[0]);
        UIObject    uIo3x3 = this.Descendants.Find(uI3x3);

        UICondition uI4x4  = UICondition.Create("@Name='4x4'", new Object[0]);
        UIObject    uIo4x4 = this.Descendants.Find(uI4x4);

        MS.Internal.Mita.Foundation.Controls.RadioButton radioButton3 = new MS.Internal.Mita.Foundation.Controls.RadioButton(uIo3x3);
        MS.Internal.Mita.Foundation.Controls.RadioButton radioButton4 = new MS.Internal.Mita.Foundation.Controls.RadioButton(uIo4x4);
        if (radioButton3.IsSelected)
        {
            radioButton4.Select();
        }

        //http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=27142
        //UICondition uICcreate2 = UICondition.Create("@Name='Create'", new Object[0]);
        //UIObject uIoCreate2 = this.Descendants.Find(uICcreate2);
        //Window objcreate2 = new Window(uIoCreate2);

        //UIProperty u = UIProperty.Get("ClassName");
        //UICondition uIcondition2 = UICondition.Create(u, "#32770");
        //WindowOpenedWaiter wait2 = new WindowOpenedWaiter(uIcondition2);
        //objcreate2.Click();
        //wait2.Wait(5000);

        //UIObject ui2 = this.Children.Find(uIcondition2);
        //UIObject uiyes = ui2.Children.Find(UICondition.Create("@Name='Yes'", new Object[0]));
        //Window winyes = new Window(uiyes);
        //Thread.Sleep(300);
        //winyes.Click();
    }
Пример #2
0
    public void Test_create()
    {
        UICondition uICcreate = UICondition.Create("@Name='create'", new Object[0]);
        UIObject uIoCreate = this.Descendants.Find(uICcreate);
        Window objcreate = new Window(uIoCreate);
        objcreate.Click();

        UICondition uI3x3 = UICondition.Create("@Name='3x3'", new Object[0]);
        UIObject uIo3x3 = this.Descendants.Find(uI3x3);

        UICondition uI4x4 = UICondition.Create("@Name='4x4'", new Object[0]);
        UIObject uIo4x4 = this.Descendants.Find(uI4x4);

        MS.Internal.Mita.Foundation.Controls.RadioButton radioButton3 = new MS.Internal.Mita.Foundation.Controls.RadioButton(uIo3x3);
        MS.Internal.Mita.Foundation.Controls.RadioButton radioButton4 = new MS.Internal.Mita.Foundation.Controls.RadioButton(uIo4x4);
        if (radioButton3.IsSelected)
        {
            radioButton4.Select();
        }

        //http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=27142
        //UICondition uICcreate2 = UICondition.Create("@Name='Create'", new Object[0]);
        //UIObject uIoCreate2 = this.Descendants.Find(uICcreate2);
        //Window objcreate2 = new Window(uIoCreate2);

        //UIProperty u = UIProperty.Get("ClassName");
        //UICondition uIcondition2 = UICondition.Create(u, "#32770");
        //WindowOpenedWaiter wait2 = new WindowOpenedWaiter(uIcondition2);
        //objcreate2.Click();
        //wait2.Wait(5000);

        //UIObject ui2 = this.Children.Find(uIcondition2);
        //UIObject uiyes = ui2.Children.Find(UICondition.Create("@Name='Yes'", new Object[0]));
        //Window winyes = new Window(uiyes);
        //Thread.Sleep(300);
        //winyes.Click();
    }