示例#1
0
        private void FindElements()
        {
            this.sidebar = LocatorHelper.QuietlyFindElement(driver, sidebarLocator, 10);

            if (sidebar != null)
            {
                this.sortableListItem = LocatorHelper.QuietlyFindElementWithinElement(driver, sortableListItemLocator, this.sidebar, 10);
            }
        }
 private void FindElements(IWebDriver driver)
 {
     AutoclosableSuccessMsgButton = LocatorHelper.QuietlyFindElement(driver, AutoclosableSuccessMsgButtonLocator, 10);
     NormalSuccessMsgButton       = LocatorHelper.QuietlyFindElement(driver, NormalSuccessMsgButtonLocator, 10);
     AutoclosableWarningMsgButton = LocatorHelper.QuietlyFindElement(driver, AutoclosableWarningMsgButtonLocator, 10);
     NormalWarningMsgButton       = LocatorHelper.QuietlyFindElement(driver, NormalWarningMsgButtonLocator, 10);
     AutoclosableDangerMsgButton  = LocatorHelper.QuietlyFindElement(driver, AutoclosableDangerMsgButtonLocator, 10);
     NormalDangerMsgButton        = LocatorHelper.QuietlyFindElement(driver, NormalDangerMsgButtonLocator, 10);
     AutoclosableInfoMsgButton    = LocatorHelper.QuietlyFindElement(driver, AutoclosableInfoMsgButtonLocator, 10);
     NormalInfoMsgButton          = LocatorHelper.QuietlyFindElement(driver, NormalInfoMsgButtonLocator, 10);
 }