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); } }
public void AddSelDescriptor(SelDescriptor aSelDesc) { SelsDict.Add(aSelDesc.Name, aSelDesc); }