当前位置: 首页>>代码示例>>C#>>正文


C# WinWindow类代码示例

本文整理汇总了C#中WinWindow的典型用法代码示例。如果您正苦于以下问题:C# WinWindow类的具体用法?C# WinWindow怎么用?C# WinWindow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


WinWindow类属于命名空间,在下文中一共展示了WinWindow类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ComboBoxDistributionTerms

 private static WinComboBox ComboBoxDistributionTerms()
 {
     var combobxDistTermsParent = new WinWindow(CommonUiMap.WindowMaintance());
     combobxDistTermsParent.SearchProperties[WinControl.PropertyNames.ControlName] = "cboDistributionTerms";
     var combobxDistTerms = new WinComboBox(combobxDistTermsParent);
     return combobxDistTerms;
 }
开发者ID:Free1man,项目名称:FilmHire,代码行数:7,代码来源:FilmHireContractsUIMap.cs

示例2: Main

        static void Main(string[] args)
        {

            Playback.Initialize();
            WinWindow GetCUITWindow = new WinWindow();
             GetCUITWindow.SearchProperties.Add(WinWindow.PropertyNames.ControlName, "BrowserMain");
             //UITestControlCollection allwnds = GetCUITWindow.FindMatchingControls();
             //GetCUITWindow = (WinWindow)allwnds[0];
            #region usingautoid
            //UITestControlCollection wndCollection = GetCUITWindow.FindMatchingControls();
            //foreach (UITestControl inwin in wndCollection)
            //{
            //   if (inwin.TechnologyName == "MSAA" && ((WinWindow)inwin).ControlName == "BrowserMain")
            //    {
            //        GetCUITWindow = (WinWindow)inwin;
            //    }
            //}
            #endregion
         //   GetCUITWindow.SearchProperties.Add(WinWindow.PropertyNames.Name, "LOWIS:", PropertyExpressionOperator.Contains);
            WinButton btn = new WinButton(GetCUITWindow);
            btn.SearchProperties.Add(WinButton.PropertyNames.Name, "Add a New Well");
            Mouse.Click(btn);
            Playback.Cleanup();

        }
开发者ID:prasannarhegde2015,项目名称:C-Advanced-Learning,代码行数:25,代码来源:Program.cs

示例3: ComboBoxFilm

 private static WinComboBox ComboBoxFilm()
 {
     var combobxFilmParent = new WinWindow(CommonUiMap.WindowMaintance());
     combobxFilmParent.SearchProperties[WinControl.PropertyNames.ControlName] = "cboFilm";
     var combobxFilm = new WinComboBox(combobxFilmParent);
     return combobxFilm;
 }
开发者ID:Free1man,项目名称:FilmHire,代码行数:7,代码来源:FilmHireContractsUIMap.cs

示例4: FormModel

 public FormModel()
 {
     MainWindow = new WinWindow(By.Name("Form1"));
     lbl_ChangingText = MainWindow.Find<WinText>(By.Name("lbl_ChangingText"));
     btn_ChangeTxt = MainWindow.Find<WinButton>(By.Name("btn_ChangingText"));
     txtBox_ChangingBox = MainWindow.Find<WinEdit>(By.Name("txtBox_ChangingText"));
 }
开发者ID:kraidleyaran,项目名称:SampleCodedUI,代码行数:7,代码来源:FormModel.cs

示例5: GetOutlookAfterFeedbackWindow

 private WinWindow GetOutlookAfterFeedbackWindow()
 {
     WinWindow theWindow = new WinWindow();
     theWindow.SearchProperties[WinWindow.PropertyNames.Name] = "Some Real Live Feedback : Feedback - Message (Plain Text) ";
     theWindow.Find();
     return theWindow;
 }
开发者ID:FerdinandOlivier,项目名称:Warewolf-ESB,代码行数:7,代码来源:ExternalUIMap.Designer.cs

示例6: ComboBoxSalesTax

 private static WinComboBox ComboBoxSalesTax()
 {
     var salesTaxParent = new WinWindow(CommonUiMap.WindowMaintance());
     salesTaxParent.SearchProperties[WinControl.PropertyNames.ControlName] = "cboSalesTax";
     var comboBoxSalesTax = new WinComboBox(salesTaxParent);
     return comboBoxSalesTax;
 }
开发者ID:Free1man,项目名称:FilmHire,代码行数:7,代码来源:FilmHireContractsUIMap.cs

示例7: GetWordRibbon

 static WinWindow GetWordRibbon(WinWindow window)
 {
     var ribbonWindow = new WinWindow(window);
     ribbonWindow.SearchProperties[WinWindow.PropertyNames.AccessibleName] = "Ribbon";
     ribbonWindow.SearchProperties[WinWindow.PropertyNames.ClassName] = "NetUIHWND";
     ribbonWindow.WindowTitles.Add("Document1 - Word");
     return ribbonWindow;
 }
开发者ID:beachandbytes,项目名称:GorillaDocs,代码行数:8,代码来源:RibbonTests.cs

示例8: ShowDialogWindow

    protected override void ShowDialogWindow(WinWindow window)
    {
        //см. #4697
            Form form = window.Form;
            form.StartPosition = FormStartPosition.CenterParent;

            base.ShowDialogWindow(window);
    }
开发者ID:Rukhlov,项目名称:DataStudio,代码行数:8,代码来源:SdiWithModalDetailViewStrategy.cs

示例9: ClickToolBar

 public static void ClickToolBar(string windowtitle, string toolbarname)
 {
     WinWindow addposn = new WinWindow();
     addposn.SearchProperties.Add(WinWindow.PropertyNames.Name, windowtitle, PropertyExpressionOperator.Contains);
     WinToolBar addposbtn = new WinToolBar(addposn);
     addposbtn.SearchProperties.Add(WinToolBar.PropertyNames.Name, toolbarname);
     Mouse.Click(addposbtn);
 }
开发者ID:prasannarhegde2015,项目名称:MySQLBackupCsharpScript,代码行数:8,代码来源:LowisUMapplyHF.cs

示例10: ClickWindowButton

 public static void ClickWindowButton(string windowtitle, string buttontext)
 {
     WinWindow addposn = new WinWindow();
     addposn.SearchProperties.Add(WinWindow.PropertyNames.Name, windowtitle, PropertyExpressionOperator.Contains);
     WinButton addposbtn = new WinButton(addposn);
     addposbtn.SearchProperties.Add(WinButton.PropertyNames.Name, buttontext);
     Mouse.Click(addposbtn);
 }
开发者ID:prasannarhegde2015,项目名称:C-Advanced-Learning,代码行数:8,代码来源:Program.cs

示例11: EnterDatainTextbox

 public static void EnterDatainTextbox(string windowtitle, string buttontext,string val)
 {
     WinWindow addposn = new WinWindow();
     addposn.SearchProperties.Add(WinWindow.PropertyNames.Name, windowtitle, PropertyExpressionOperator.Contains);
     WinEdit addposbtn = new WinEdit(addposn);
     addposbtn.SearchProperties.Add(WinEdit.PropertyNames.Name, buttontext);
     Mouse.Click(addposbtn);
     addposbtn.Text = val;
 }
开发者ID:prasannarhegde2015,项目名称:MySQLBackupCsharpScript,代码行数:9,代码来源:LowisUMapplyHF.cs

示例12: GetWindowExistStatus

 public bool GetWindowExistStatus()
 {
     this.mUIAXCWindow = new UIAXCWindow();
     WinClient uIClientName = new WinClient(mUIClientName);
     uIClientName.TechnologyName = "MSAA";
     uIClientName.SearchProperties.Add("ControlType", "WinWindow");
     uIClientName.SearchProperties.Add("Name", "Filter", PropertyExpressionOperator.Contains);
     mUIClientName = uIClientName;
     return true;
 }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:10,代码来源:FilterPage.cs

示例13: GetTable

 public static WinTable GetTable(string name, string itemWindowID, WinWindow parent)
 {
     WinWindow ItemWindow = new WinWindow(parent);
     ItemWindow.SearchProperties[WinWindow.PropertyNames.ControlId] = itemWindowID;
     ItemWindow.WaitForControlReady();
     WinTable mUITable = new WinTable(ItemWindow);
     mUITable.SearchProperties[WinTable.PropertyNames.Name] = name;
     mUITable.WaitForControlReady();
     return mUITable;
 }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:10,代码来源:Table.cs

示例14: ClickMaximizeButton

 public static void ClickMaximizeButton(WinWindow parentWindow)
 {
     if (parentWindow.Maximized == false)
     {
         WinTitleBar titleBar = new WinTitleBar(parentWindow);
         WinButton maxButton = new WinButton(titleBar);
         maxButton.SearchProperties.Add("Name", "Maximize");
         maxButton.WaitForControlReady();
         Mouse.Click(maxButton, new Point(maxButton.Width / 2, maxButton.Height / 2));
     }
 }
开发者ID:pjagga,项目名称:SeleniumMSTestVS2013,代码行数:11,代码来源:UIControls.cs

示例15: ClickClose

        /// <summary>
        /// Click Close method is to click Close on the title bar of all windows
        /// </summary>
        /// <param name="window"></param>
        public static void ClickClose(WinWindow window)
        {
            #region Variable Declarations

            Window.Name = window.Name;
            var uICloseButton = UIEllisWindow.UIEllisTitleBar.UICloseButton;
            #endregion

            // Click 'Close' button
            Mouse.Click(uICloseButton);
        }
开发者ID:k3foru,项目名称:WinAppTestingFramework,代码行数:15,代码来源:TitlebarActions.cs


注:本文中的WinWindow类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。