コード例 #1
0
ファイル: PageSettingsPage.cs プロジェクト: misterPaul0/Curt
 /// <summary>
 /// Creates a page and gives a user view permissions for the page.
 /// Will not work unless the test is already on the Add Page form.
 /// </summary>
 /// <param name="pageName">The name of the page.</param>
 /// <param name="userName">The username of the user.</param>
 public void AddPageGiveUserViewPermission(string pageName, string userName)
 {
     PageNameField.Value       = pageName;
     UserPermissionField.Value = userName;
     AddUserPermissionLink.ClickNoWait();
     System.Threading.Thread.Sleep(1000);
     AddPageLink.ClickNoWait();
     System.Threading.Thread.Sleep(1500);
 }