Exemplo n.º 1
0
 public TSelf Wait(int seconds, EnumSearchLocation location = EnumSearchLocation.IFrame)
 {
     if (location == EnumSearchLocation.MainWindow)
     {
         DriverHelpers.WaitForSometime(base.PrimaryDriver, seconds);
     }
     else
     {
         DriverHelpers.WaitForSometime(base.IFrameDriver, seconds);
     }
     return(this as TSelf);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Path must be separated by \
        /// </summary>
        /// <param name="fullPathUnderProjectFolder"></param>
        /// <returns></returns>
        protected void Tree_SelectLeafUnderProjectByPath(string fullPathUnderProjectFolder)
        {
            string[] pathArr = fullPathUnderProjectFolder.Split('\\');

            IWebDriver driver = this.PrimaryDriver;

            var parentTreeNode = TreePanelHelper.Tree_Select_ProjectFolder(driver);

            int ctr = 0;

            while (ctr < pathArr.Length - 1)
            {
                parentTreeNode = TreePanelHelper.Tree_SubFolder_Toggle(driver, parentTreeNode, pathArr[ctr], true);
                ctr++;
            }

            TreePanelHelper.Tree_SelectLeafUnderFolder(driver, parentTreeNode, pathArr[ctr]);

            DriverHelpers.WaitForSometime(driver);
        }
Exemplo n.º 3
0
        //protected T Wait_WithCallback(T refObj, bool isPrimary, By by, int timeoutInSeconds, Action<IWebElement> callback = null)
        //{
        //    var driver = isPrimary ? base.PrimaryDriver : base.IFrameDriver;
        //    DriverHelpers.Wait_WithCallback(driver, by, timeoutInSeconds, callback);

        //    return this as T;
        //}
        public virtual TSelf Wait(int seconds)
        {
            DriverHelpers.WaitForSometime(base.PrimaryDriver, seconds);
            return(this as TSelf);
        }