protected virtual void OnSelecting(ItemListEventArgs args) { if (Selecting != null) { Selecting.Invoke(this, args); } }
protected virtual void DefaultSelectByIndex(Select select, int index) { Selecting?.Invoke(this, new ElementActionEventArgs(select, index.ToString())); var nativeSelect = new SelectElement(WrappedElement); nativeSelect.SelectByIndex(index); WrappedElement = null; ShouldCacheElement = false; Selected?.Invoke(this, new ElementActionEventArgs(select, nativeSelect.SelectedOption.Text)); }
public virtual void SelectByText(string value) { Selecting?.Invoke(this, new ComponentActionEventArgs(this, value)); if (WrappedElement.Text != value) { WrappedElement.SendKeys(value); } Selected?.Invoke(this, new ComponentActionEventArgs(this, value)); }
protected virtual void DefaultSelectByText(Select select, string value) { Selecting?.Invoke(this, new ElementActionEventArgs(select, value)); var nativeSelect = new SelectElement(WrappedElement); nativeSelect.SelectByText(value); WrappedElement = null; ShouldCacheElement = false; Selected?.Invoke(this, new ElementActionEventArgs(select, value)); }
public void SelectByText(string value) { Selecting?.Invoke(this, new ElementActionEventArgs <IOSElement>(this, value)); if (WrappedElement.Text != value) { WrappedElement.Click(); var elementCreateService = ServicesCollection.Current.Resolve <ElementCreateService>(); var innerElementToClick = elementCreateService.CreateByValueContaining <RadioButton>(value); innerElementToClick.Click(); } Selected?.Invoke(this, new ElementActionEventArgs <IOSElement>(this, value)); }
public virtual void SelectByText(string value) { Selecting?.Invoke(this, new ComponentActionEventArgs <OpenQA.Selenium.Appium.Android.AndroidElement>(this, value)); if (WrappedElement.Text != value) { WrappedElement.Click(); var elementCreateService = ServicesCollection.Current.Resolve <ComponentCreateService>(); var innerElementToClick = elementCreateService.CreateByTextContaining <RadioButton>(value); innerElementToClick.Click(); } Selected?.Invoke(this, new ComponentActionEventArgs <OpenQA.Selenium.Appium.Android.AndroidElement>(this, value)); }
internal void OnSelecting(SelectingEventArgs args) { Selecting?.Invoke(this, args); }
internal static void OnSelecting() => Selecting?.Invoke(null, EventArgs.Empty);