/// <summary> /// Submits this element to the web server. /// </summary> public void Submit() { NgDriver.WaitForAngular(); WrappedElement.Submit(); }
public ProfileMenu OpenProfileMenu() { WrappedElement.FindElement(_byProfileLink).Click(); return(new ProfileMenu(Wait.Until(ExpectedConditions.ElementIsVisible(_byProfileMenu)))); }
public CurrencyMenu OpenCurrencyMenu() { WrappedElement.FindElement(_byCurrencyLink).Click(); return(new CurrencyMenu(Wait.Until(ExpectedConditions.ElementIsVisible(_byCurrencyMenu)))); }
public void UploadFileFromPath(string path) { WrappedElement.SendKeys(path); }
/// <inheritdoc/> public override bool IsStale() { return(WrappedElement.IsStale()); }
protected bool GetDisabledAttribute() { string valueAttr = WrappedElement.GetAttribute("disabled"); return(valueAttr == "true"); }
protected virtual string GetClassAttribute() { return(string.IsNullOrEmpty(WrappedElement.GetAttribute("class")) ? null : WrappedElement.GetAttribute("class")); }
/// <summary> /// Submits this instance. /// </summary> public void Submit() { WrappedElement.Submit(); }
/// <summary> /// Gets the not proxied input element. /// </summary> /// <returns>The value.</returns> private IWebElement GetNotProxiedInputElement() { // Cannot get something from WebElementProxy class since it's 'internal' return(WrappedElement.FindElement(By.XPath("."))); }
/// <summary> /// Waits for animation end. /// </summary> /// <param name="animationData">The animation data.</param> protected virtual void WaitForAnimationEnd( CollapsableOptions animationData = null) { WrappedElement.WaitForEvent(EventHiddenCollapse); }
public void Select() { WrappedElement.Click(); }
/// <summary> /// Waits for animation start. /// </summary> /// <param name="animationData">The animation data.</param> protected virtual void WaitForAnimationStart( CollapsableOptions animationData = null) { WrappedElement.WaitForEvent(EventShowCollapse); }
public void SendKeys(string keys) { WrappedElement.SendKeys(keys); }
public void Clear() { WrappedElement.Clear(); }
public void Upload(string file) { WrappedElement.SendKeys(file); }
public IWebElement FindElement(By by) { return(WrappedElement.FindElement(by)); }
internal string GetInnerHtmlAttribute() { return(WrappedElement.GetAttribute("innerHTML")); }
public ReadOnlyCollection <IWebElement> FindElements(By by) { return(WrappedElement.FindElements(by)); }
public string GetCssValue(string propertyName) => WrappedElement.GetCssValue(propertyName);
public string GetProperty(string propertyName) { return(WrappedElement.GetProperty(propertyName)); }
internal string DefaultGetValue() { return(WrappedElement.GetAttribute("value")); }
/// <summary> /// Returns a list of news items. /// </summary> /// <returns></returns> public virtual IReadOnlyList <NewsItem> NewsItems() { return(WrappedElement.FindElements(panelHeadingSelector) .Select(e => new NewsItem(e)) .ToList()); }
public void Submit() { WrappedElement.FindElement(_bySubmit).Click(); }
public void Click() { Clicking?.Invoke(this, new ComponentActionEventArgs(this)); WrappedElement.Click(); Clicked?.Invoke(this, new ComponentActionEventArgs(this)); }
public LoginForm OpenLoginForm() { WrappedElement.FindElement(_byLoginLink).Click(); return(new LoginForm(Wait.Until(ExpectedConditions.ElementIsVisible(_byLoginForm)))); }
private bool IsExpanded() { return(WrappedElement.Is(By.CssSelector(".open"))); }
public LanguageMenu OpenLanguageMenu() { WrappedElement.FindElement(_byLanguageLink).Click(); return(new LanguageMenu(Wait.Until(ExpectedConditions.ElementIsVisible(_byLanguageMenu)))); }
public void Click() { WrappedElement.Click(); }
internal bool GetIsChecked() { return(bool.Parse(WrappedElement.GetAttribute("checked"))); }
/// <summary> /// Simulates typing text into the element. /// </summary> public void SendKeys(string text) { NgDriver.WaitForAngular(); WrappedElement.SendKeys(text); }