Example #1
0
 /// <summary>
 ///     Submits this element to the web server.
 /// </summary>
 public void Submit()
 {
     NgDriver.WaitForAngular();
     WrappedElement.Submit();
 }
Example #2
0
 public ProfileMenu OpenProfileMenu()
 {
     WrappedElement.FindElement(_byProfileLink).Click();
     return(new ProfileMenu(Wait.Until(ExpectedConditions.ElementIsVisible(_byProfileMenu))));
 }
Example #3
0
 public CurrencyMenu OpenCurrencyMenu()
 {
     WrappedElement.FindElement(_byCurrencyLink).Click();
     return(new CurrencyMenu(Wait.Until(ExpectedConditions.ElementIsVisible(_byCurrencyMenu))));
 }
Example #4
0
 public void UploadFileFromPath(string path)
 {
     WrappedElement.SendKeys(path);
 }
Example #5
0
 /// <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"));
 }
Example #8
0
 /// <summary>
 ///     Submits this instance.
 /// </summary>
 public void Submit()
 {
     WrappedElement.Submit();
 }
Example #9
0
 /// <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(".")));
 }
Example #10
0
 /// <summary>
 /// Waits for animation end.
 /// </summary>
 /// <param name="animationData">The animation data.</param>
 protected virtual void WaitForAnimationEnd(
     CollapsableOptions animationData = null)
 {
     WrappedElement.WaitForEvent(EventHiddenCollapse);
 }
Example #11
0
 public void Select()
 {
     WrappedElement.Click();
 }
Example #12
0
 /// <summary>
 /// Waits for animation start.
 /// </summary>
 /// <param name="animationData">The animation data.</param>
 protected virtual void WaitForAnimationStart(
     CollapsableOptions animationData = null)
 {
     WrappedElement.WaitForEvent(EventShowCollapse);
 }
Example #13
0
 public void SendKeys(string keys)
 {
     WrappedElement.SendKeys(keys);
 }
Example #14
0
 public void Clear()
 {
     WrappedElement.Clear();
 }
 public void Upload(string file)
 {
     WrappedElement.SendKeys(file);
 }
Example #16
0
 public IWebElement FindElement(By by)
 {
     return(WrappedElement.FindElement(by));
 }
 internal string GetInnerHtmlAttribute()
 {
     return(WrappedElement.GetAttribute("innerHTML"));
 }
Example #18
0
 public ReadOnlyCollection <IWebElement> FindElements(By by)
 {
     return(WrappedElement.FindElements(by));
 }
 public string GetCssValue(string propertyName) => WrappedElement.GetCssValue(propertyName);
Example #20
0
 public string GetProperty(string propertyName)
 {
     return(WrappedElement.GetProperty(propertyName));
 }
 internal string DefaultGetValue()
 {
     return(WrappedElement.GetAttribute("value"));
 }
Example #22
0
 /// <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());
 }
Example #23
0
 public void Submit()
 {
     WrappedElement.FindElement(_bySubmit).Click();
 }
Example #24
0
 public void Click()
 {
     Clicking?.Invoke(this, new ComponentActionEventArgs(this));
     WrappedElement.Click();
     Clicked?.Invoke(this, new ComponentActionEventArgs(this));
 }
Example #25
0
 public LoginForm OpenLoginForm()
 {
     WrappedElement.FindElement(_byLoginLink).Click();
     return(new LoginForm(Wait.Until(ExpectedConditions.ElementIsVisible(_byLoginForm))));
 }
Example #26
0
 private bool IsExpanded()
 {
     return(WrappedElement.Is(By.CssSelector(".open")));
 }
Example #27
0
 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")));
 }
Example #30
0
 /// <summary>
 ///     Simulates typing text into the element.
 /// </summary>
 public void SendKeys(string text)
 {
     NgDriver.WaitForAngular();
     WrappedElement.SendKeys(text);
 }