コード例 #1
0
        //        public FOBaseWidget GetChild(string locator, string controlType, string displayName)
        //        {
        //            By m_Parent = FindBy;
        //            By m_MyBy = GetFindBy(locator);
        //            string m_MyLocator = m_Parent.ToString() + " > " + m_MyBy.ToString();
        //            return new FOBaseWidget(m_MyLocator, controlType, displayName);
        //        }

        public new bool Click()
        {
            for (int i = 0; i < 2; i++)
            {
                try
                {
                    base.Click();
                    FOLogger.LogInfo("Clicked the '" + DisplayName + "' " + ControlType);
                    return(true);
                }
                catch (StaleElementReferenceException) { }
            }

            return(false);
        }
コード例 #2
0
 public new bool SendKeys(string keys)
 {
     base.SendKeys(keys);
     FOLogger.LogInfo("In the '" + DisplayName + "' " + ControlType + " enter the text: '" + keys + "'.");
     return(true);
 }