Esempio n. 1
0
 /// <summary>
 ///     Submits this element to the web server.
 /// </summary>
 public void Submit()
 {
     NgDriver.WaitForAngular();
     WrappedElement.Submit();
 }
Esempio n. 2
0
 public ProfileMenu OpenProfileMenu()
 {
     WrappedElement.FindElement(_byProfileLink).Click();
     return(new ProfileMenu(Wait.Until(ExpectedConditions.ElementIsVisible(_byProfileMenu))));
 }
Esempio n. 3
0
 public CurrencyMenu OpenCurrencyMenu()
 {
     WrappedElement.FindElement(_byCurrencyLink).Click();
     return(new CurrencyMenu(Wait.Until(ExpectedConditions.ElementIsVisible(_byCurrencyMenu))));
 }
Esempio n. 4
0
 public void UploadFileFromPath(string path)
 {
     WrappedElement.SendKeys(path);
 }
Esempio n. 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"));
 }
Esempio n. 8
0
 /// <summary>
 ///     Submits this instance.
 /// </summary>
 public void Submit()
 {
     WrappedElement.Submit();
 }
Esempio n. 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(".")));
 }
Esempio n. 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);
 }
Esempio n. 11
0
 public void Select()
 {
     WrappedElement.Click();
 }
Esempio n. 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);
 }
Esempio n. 13
0
 public void SendKeys(string keys)
 {
     WrappedElement.SendKeys(keys);
 }
Esempio n. 14
0
 public void Clear()
 {
     WrappedElement.Clear();
 }
 public void Upload(string file)
 {
     WrappedElement.SendKeys(file);
 }
Esempio n. 16
0
 public IWebElement FindElement(By by)
 {
     return(WrappedElement.FindElement(by));
 }
Esempio n. 17
0
 internal string GetInnerHtmlAttribute()
 {
     return(WrappedElement.GetAttribute("innerHTML"));
 }
Esempio n. 18
0
 public ReadOnlyCollection <IWebElement> FindElements(By by)
 {
     return(WrappedElement.FindElements(by));
 }
Esempio n. 19
0
 public string GetCssValue(string propertyName) => WrappedElement.GetCssValue(propertyName);
Esempio n. 20
0
 public string GetProperty(string propertyName)
 {
     return(WrappedElement.GetProperty(propertyName));
 }
Esempio n. 21
0
 internal string DefaultGetValue()
 {
     return(WrappedElement.GetAttribute("value"));
 }
Esempio n. 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());
 }
Esempio n. 23
0
 public void Submit()
 {
     WrappedElement.FindElement(_bySubmit).Click();
 }
Esempio n. 24
0
 public void Click()
 {
     Clicking?.Invoke(this, new ComponentActionEventArgs(this));
     WrappedElement.Click();
     Clicked?.Invoke(this, new ComponentActionEventArgs(this));
 }
Esempio n. 25
0
 public LoginForm OpenLoginForm()
 {
     WrappedElement.FindElement(_byLoginLink).Click();
     return(new LoginForm(Wait.Until(ExpectedConditions.ElementIsVisible(_byLoginForm))));
 }
Esempio n. 26
0
 private bool IsExpanded()
 {
     return(WrappedElement.Is(By.CssSelector(".open")));
 }
Esempio n. 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")));
 }
Esempio n. 30
0
 /// <summary>
 ///     Simulates typing text into the element.
 /// </summary>
 public void SendKeys(string text)
 {
     NgDriver.WaitForAngular();
     WrappedElement.SendKeys(text);
 }