本文整理汇总了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;
}
示例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();
}
示例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;
}
示例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"));
}
示例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;
}
示例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;
}
示例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;
}
示例8: ShowDialogWindow
protected override void ShowDialogWindow(WinWindow window)
{
//см. #4697
Form form = window.Form;
form.StartPosition = FormStartPosition.CenterParent;
base.ShowDialogWindow(window);
}
示例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);
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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));
}
}
示例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);
}