private void Element(string path) { Routes[path]["GET"] = new ElementHandler(Elements.Get); Routes[path]["DELETE"] = new ElementHandler(Elements.Close); Routes[path + "/structure"]["GET"] = new ElementHandler(Dump.GetStructure); Routes[path + "/enabled"]["GET"] = new ElementHandler(Elements.GetEnabled); Routes[path + "/expanded"]["GET"] = new ElementHandler(Elements.GetExpanded); Routes[path + "/expanded"]["POST"] = new ElementHandler(Elements.SetExpanded); Routes[path + "/selected"]["GET"] = new ElementHandler(Elements.GetSelected); Routes[path + "/selected"]["POST"] = new ElementHandler(Elements.SetSelected); Routes[path + "/value"]["GET"] = new ElementHandler(Elements.GetValue); Routes[path + "/value"]["POST"] = new ElementHandler(Elements.SetValue); Routes[path + "/value"]["OPTIONS"] = new ElementHandler(Elements.GetValueOptions); Routes[path + "/size"]["POST"] = new ElementHandler(Elements.SetSize); Routes[path + "/location"]["POST"] = new ElementHandler(Elements.SetLocation); Routes[path + "/bounds"]["GET"] = new ElementHandler(Elements.GetBounds); Routes[path + "/bounds"]["POST"] = new ElementHandler(Elements.SetBounds); Routes[path + "/axis/:axis"]["POST"] = new ElementHandler(Elements.Scroll); Routes[path + "/axis/:axis"]["GET"] = new ElementHandler(Elements.GetScrollPosition); Routes[path + "/axisX"]["GET"] = new ElementHandler(Elements.GetScrollerX); Routes[path + "/axisY"]["GET"] = new ElementHandler(Elements.GetScrollerY); Routes[path + "/screenshot"]["GET"] = new ElementHandler(Elements.GetScreenshot); Routes[path + "/click"]["POST"] = new ElementHandler(Elements.Click); Routes[path + "/name"]["GET"] = new ElementHandler(Elements.GetName); Routes[path + "/keyboard"]["POST"] = new ElementHandler(Elements.SendKeys); Routes[path + "/parent"]["GET"] = new ElementHandler(Elements.GetParent); Routes[path + "/children"]["GET"] = new ElementHandler(Search.FindChildren); Routes[path + "/descendants"]["GET"] = new ElementHandler(Search.FindDescendants); Routes[path + "/exists"]["GET"] = new ElementResponder(new ElementHandler(Elements.GetExists), true); // don't throw if element doesn't exist Routes[path + "/exists"]["POST"] = new ElementResponder(new ElementHandler(Elements.PollExists), true); // don't throw if element doesn't exist Routes[path + "/toggle"]["GET"] = new ElementHandler(Elements.GetToggleState); Routes[path + "/toggle"]["POST"] = new ElementHandler(Elements.SetToggleState); Routes[path + "/window-state"]["GET"] = new ElementHandler(Elements.GetWindowState); Routes[path + "/window-state"]["POST"] = new ElementHandler(Elements.SetWindowState); Routes[path + "/selection-container"]["GET"] = new ElementHandler(Elements.GetSelectionContainer); Routes[path + "/selection"]["GET"] = new ElementHandler(Elements.GetSelection); }
public bool IsLabelExisted() { return(ElementHandler.Exists(this._RootLocator)); }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <SportsOlympicsEventSchedulesAndResultsInformationNuggetJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <UberApiErrorPromoFailedJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <TimeOfMoonPhaseInformationNuggetJSON>(); have_value = false; }
public bool EntirelyNoChartDrawn() { return(!(ElementHandler.Exists(this._RootLocator))); }
private IWebElement[] FindChildren(Locator locator, IWebElement parent) { return(ElementHandler.FindElements(locator, parent).ToArray()); }
public DiagnosticsConfigurationHandler () { elementHandlers ["assert"] = new ElementHandler (AddAssertNode); elementHandlers ["performanceCounters"] = new ElementHandler (AddPerformanceCountersNode); elementHandlers ["switches"] = new ElementHandler (AddSwitchesNode); elementHandlers ["trace"] = new ElementHandler (AddTraceNode); elementHandlers ["sources"] = new ElementHandler (AddSourcesNode); }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <CarControlClimateIntoModeStateJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <UserContactsRequestJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <MapControlIntraQueryStateJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <ContactListWithGroupingJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <SportsPlayoffTriviaQueryStateJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <DialOneContactNumberAmbiguousCommandJSON>(); have_value = false; }
public void Click() { ElementHandler.Click(this.RootElement); }
public FieldHoldingArrayGeneratorProposedAction() { element_handler = new ElementHandler(this); have_value = false; value = new List <TypeProposedAction>(); }
public void SendWithReply(Element element, ElementHandler handler) { IntPtr ptr = new IntPtr(); IntPtr chandler; chandler = lm_message_handler_new(new _ElementHandler(this.AsyncHandler), ptr, IntPtr.Zero); _asyncHandlers.Add(ptr, handler); lm_connection_send_with_reply(_obj, element.GetObject(), chandler, IntPtr.Zero); }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <SportsOlympicsMedalStandingsArgumentOrganizationJSON>(); have_value = false; }
public DesktopResponder(ElementHandler handler) : base(handler, true) {} // optional for efficiency, desktop will always exist
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <HomeAutomationSetVolumeDeltaCommandJSON>(); have_value = false; }
private IWebElement FindChild(Locator locator, IWebElement parent) { return(ElementHandler.FindElement(locator, parent)); }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <UberRequestLocationJSON>(); have_value = false; }
public FieldHoldingArrayGeneratorScope() { element_handler = new ElementHandler(this); have_value = false; value = new List <TypeScope>(); }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <CarControlSeatHeaterCommandJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <MapLocationWithDescriptionJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <StoredAlwaysMatchReadDataJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <TimerJSON>(); have_value = false; }
public FieldHoldingArrayGeneratorDateAndTimeKind() { element_handler = new ElementHandler(this); have_value = false; value = new List <TypeDateAndTimeKind>(); }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <HomeAutomationCompactDeviceSpecifierJSON>(); have_value = false; }
public HoldingArrayGenerator(bool ignore_extras) { element_handler = new ElementHandler(this, ignore_extras); value = new List <DateAndTimeLookupConversationStateJSON>(); have_value = false; }
public void Float() { ElementHandler.Float(this.RootElement); }
public bool IsNavigatorExists() { return(ElementHandler.Exists(NavigatorLocator)); }
/// <summary> /// Constructor for MTElementContainer. /// </summary> /// <param name="createFrom">The FrameworkElement this container is going to store touches for and manipulate.</param> public MTContainer(FrameworkElement createFrom, Panel topCont, ElementProperties props) { StartScale = 1f; Transforms = new TransformGroup(); if (createFrom == null) throw new ArgumentNullException("createFrom must not be null"); WorkingObject = createFrom; this.TopContainer = topCont; handler = ElementHandler.GetHandler(this.WorkingObject, topCont, this); ElementDef = props; }
public bool IsScrollbarExists() { return(ElementHandler.Exists(ScrollbarLocator)); }
public DiagnosticsConfigurationHandler () { elementHandlers["assert"] = new ElementHandler (AddAssertElement); elementHandlers["switches"] = new ElementHandler (AddSwitchesElement); elementHandlers["trace"] = new ElementHandler (AddTraceElement); elementHandlers ["sources"] = new ElementHandler (AddSourcesElement); }
private bool LineChartPathChildExists(Locator locator, IWebElement parent) { return(ElementHandler.FindElements(locator, parent).ToArray().Length > 1); }
public DiagnosticsConfigurationHandler () { elementHandlers ["assert"] = new ElementHandler (AddAssertNode); elementHandlers ["switches"] = new ElementHandler (AddSwitchesNode); elementHandlers ["trace"] = new ElementHandler (AddTraceNode); #if NET_2_0 elementHandlers ["sources"] = new ElementHandler (AddSourcesNode); #endif }
public ElementResponder(ElementHandler handler, bool optional) : base(null) { this.handler = handler; this.optional = optional; }