private void getAndConditions(string name, string automationId, string className, string controlType) { ResultAndCondition = null; var cmdlet = new GetControlCmdletBase { Name = name, AutomationId = automationId, Class = className, CaseSensitive = false }; var common = new CommonCmdletBase(); // 20131128 //ResultAndCondition = // (common.GetControlConditionsForWildcardSearch(cmdlet, controlType, cmdlet.CaseSensitive, true) as AndCondition); // 20131129 // ResultAndCondition = // (common.GetControlConditionsForWildcardSearch(cmdlet, controlType, cmdlet.CaseSensitive)); ResultAndCondition = // common.GetWildcardSearchCondition(cmdlet) as AndCondition; ControlSearcher.GetWildcardSearchCondition( new ControlSearcherData { Name = name, AutomationId = automationId, Class = className, CaseSensitive = false }) as AndCondition; }
private void checkConditionsArray( string controlType, string controlTypeProperty, string controlTypeValue) { Condition[] conditions = null; cmdlet = new UIAutomation.Commands.GetUiaControlCommand(); cmdletBase = new GetControlCmdletBase(); Condition condition = // cmdlet.GetWildcardSearchCondition(cmdlet); ControlSearcher.GetWildcardSearchCondition( new ControlSearcherData { // completely new Name = cmdlet.Name, AutomationId = cmdlet.AutomationId, Class = cmdlet.Class, Value = cmdlet.Value, ControlType = cmdlet.ControlType }); // 20140630 // conditions = ((AndCondition)condition).GetConditions(); if (null != condition as AndCondition) { conditions = ((AndCondition)condition).GetConditions(); } else if (null != condition as OrCondition) { conditions = ((OrCondition)condition).GetConditions(); } else { conditions = new[] { condition }; } foreach (Condition cond in conditions) { if ((cond as PropertyCondition) != null) { MbUnit.Framework.Assert.AreEqual( controlTypeProperty, (cond as PropertyCondition).Property.ProgrammaticName); MbUnit.Framework.Assert.AreEqual( controlTypeValue, (cond as PropertyCondition).Value.ToString()); } else { MbUnit.Framework.Assert.AreEqual(cond, Condition.TrueCondition); } } }
private void getOrConditions(string searchString, string controlType) { ResultOrCondition = null; GetControlCmdletBase cmdlet = new GetControlCmdletBase { ContainsText = searchString }; CommonCmdletBase common = new CommonCmdletBase(); // 20131129 // ResultOrCondition = // (common.GetControlConditionsForExactSearch(cmdlet, controlType, cmdlet.CaseSensitive, false) as OrCondition); ResultOrCondition = // common.GetTextSearchCondition(searchString, new string[] { controlType }, cmdlet.CaseSensitive) as OrCondition; ControlSearcher.GetTextSearchCondition(searchString, new string[] { controlType }, cmdlet.CaseSensitive) as OrCondition; }
public InvokeScriptCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public InvokeControlClickCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public HideCurrentHighlighterCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeReadWebDriverPageSourceCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
protected internal void WriteWarn(CommonCmdletBase cmdlet, string text) { string reportString = CmdletSignature(cmdlet) + text; // 20140317 // turning off the logger // Logger.Warn(reportString); }
public SetFocusCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public ConvertFromTableCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public ShowDesktopCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public ConvertFromTableCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public EventCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeAddChromeArgumentCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal GetVmCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal SeReadWebElementLocationCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal NewHostConnectionDataCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public MoveCursorCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
protected internal void WriteDebug(CommonCmdletBase cmdlet, object obj) { string reportString = CmdletSignature(cmdlet) + obj.ToString(); WriteLog(LogLevels.Debug, reportString); }
internal TmxOpenTestScenarioCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeStartSafariCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public WaitControlStateCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal SeGetWebDriverCookiesCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeSetIeOptionCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal SeNavigationCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal RemoveVmCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal SeSaveScreenshotCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
NewHostConnectionDataCommand GIVEN_command(CommonCmdletBase cmdlet) { return new NewHostConnectionDataCommand(cmdlet); }
internal SeSetWebDriverTimeoutCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeAddFirefoxExtensionCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeWebDriverCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeSetWebElementKeysCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeReadWebElementDisplayedCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal MoqCommand(CommonCmdletBase cmdlet) { }
public InvokeWizardCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal SeAddChromeArgumentCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
protected internal void WriteDebug(CommonCmdletBase cmdlet, string text) { string reportString = CmdletSignature(cmdlet) + text; WriteLog(LogLevels.Debug, reportString); }
internal SeReadWebElementAttributeCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
protected internal void WriteInfo(CommonCmdletBase cmdlet, string text) { if (!string.IsNullOrEmpty(text) && !string.IsNullOrEmpty(text.Trim())) { string reportString = CmdletSignature(cmdlet) + text; // 20140317 // turning off the logger // Logger.Info(reportString); } else { // 20140317 // turning off the logger // Logger.Info(text); } }
public SetControlKeysCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeGetElementByTypeCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public GetControlCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal TamsCommand(CommonCmdletBase cmdlet) { Cmdlet = cmdlet; }
internal SeReadWebElementTagNameCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal SeSubmitWebElementCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
internal NewVmCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public ConvertToSearchCriteriaCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public WaitControlIsEnabledCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public HideCurrentHighlighterCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal DataCommand(CommonCmdletBase cmdlet) { Cmdlet = cmdlet; }
public GetWindowCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal Win32Command(CommonCmdletBase cmdlet) { Cmdlet = cmdlet; }
internal SeWebElementCommand(CommonCmdletBase cmdlet) : base(cmdlet) { }
public SetControlTextCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public GetControlCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
internal StopServerCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public EventCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public RegisterUnexpectedWindowCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }
public WaitControlIsVisibleCommand(CommonCmdletBase cmdlet) : base (cmdlet) { }