public void SearchProfile(string SearchCriteria, string ProfileName)
        {
            if (SearchCriteria != null)
            {
                if (!SearchCriteriaList.SelectedOption.Text.Equals(SearchCriteria))
                {
                    SearchCriteriaList.SelectByText(SearchCriteria);
                }
            }

            SearchTextField.Set(ProfileName);
            javaScriptExecutor.ExecuteScript("arguments[0].click();", SearchLink);
            PageUtility.WaitForPageRefresh(webDriver);
        }
Beispiel #2
0
        public void SearchProfile(string SearchCriteria, string ProfileName)
        {
            if (SearchCriteria != null)
            {
                if (!SearchCriteriaList.SelectedOption.Text.Equals(SearchCriteria))
                {
                    SearchCriteriaList.SelectByText(SearchCriteria);
                }
            }

            SearchTextField.Set(ProfileName);
            ////SearchLink.Click();
            javaScriptExecutor.ExecuteScript("arguments[0].click();", SearchLink);
            // Thread.Sleep(5000);
            //webDriver.WaitForPageLoad(TimeSpan.FromSeconds(20));
            PageUtility.WaitForPageRefresh(webDriver);
        }