Exemplo n.º 1
0
        public void ViewDocumentLibraryAs(string userType)
        {
            // documentLibraryPage.GoToUsersTab();
            var    url         = browser.GetCurrentURL();
            var    urlParts    = Regex.Split(url, "rrdsunprogs", RegexOptions.IgnoreCase);
            string usersTabURL = urlParts[0] + "/rrdsunprogs/DocumentLibrary.aspx?Tab=#/users";

            browser.OpenURL(usersTabURL);
            wait.WaitforBrowserLoad();
            documentLibraryPage.GoToTreeViewUsersTab();
            Thread.Sleep(2000);
            documentLibraryPage.SelectViewIndexContextMenuTreeView(userType);
            wait.WaitForBrowserPopup();
        }