Esempio n. 1
0
        public void WhenIClickDeleteInTheSuperUserTableAndConfirmTheDeletion(string displayName)
        {
            Thread.Sleep(1500);
            HostUserPage.AllDisplayLink.ClickNoWait();
            Thread.Sleep(1000);
            var dialog = new ConfirmDialogHandler();

            using (new UseDialogOnce(IEInstance.DialogWatcher, dialog))
            {
                HostUserPage.GetUserDeleteButton(displayName).ClickNoWait();
                dialog.WaitUntilExists();
                dialog.OKButton.Click();
            }
            Thread.Sleep(1500);
        }
Esempio n. 2
0
        public void WhenIDeleteTestuser(string user)
        {
            var approveConfirmDialog = new ConfirmDialogHandler();
            var deleteButton         = HostUserPage.GetUserDeleteButton(user);

            //remove the confirm window because it can't handle by WatIn in IE9, will update this code
            //after update the confirm window with dnn jquery confirm plugin.
            deleteButton.SetAttributeValue("onclick", "return true");
            deleteButton.Click();
            Thread.Sleep(2500);
            var removeButton = HostUserPage.GetUserRemoveButton(user);

            removeButton.SetAttributeValue("onclick", "return true");
            removeButton.Click();

            Thread.Sleep(2500);
        }