Example #1
0
            public IWebElement ClickEltByName(string aEltName, int MaxWaitTimeInSecs = 10)
            {
                SelDescriptor CurrSelDescriptor = SelsMgr.GetSelDescriptor(aEltName);
                IWebElement   elt = driver.FindElement(CurrSelDescriptor.BySelector);

                elt.Click();
                if (CurrSelDescriptor.HasAttr(SelDescriptor.StdAttrNames.ClickCausesPageLoad))
                {
                    WaitForCurrPageToFinishLoading(driver, MaxWaitTimeInSecs);
                    return(null);
                }
                else
                {
                    return(elt);
                }
            }
Example #2
0
 public void AddSelDescriptor(SelDescriptor aSelDesc)
 {
     SelsDict.Add(aSelDesc.Name, aSelDesc);
 }