Exemplo n.º 1
0
        public void PublishItemContentEditor()
        {
            ContentEditor.SendKeys(Keys.Alt + 'p');

            PublishButton.Click();

            ModalButton.Click();
            ModalButton.Click();
        }
        public void ClickPublish()
        {
            // Wait for the publish button to be enabled
            // It will not be enabled until all combo boxes have a valid
            // selection, such as the storage account combo box.
            WaitFor(PublishButton, btn => btn.Element.Current.IsEnabled);

            WaitForInputIdle();
            WaitForClosed(TimeSpan.FromSeconds(10.0), () => PublishButton.Click());
        }
        internal Uri Create(string title, string content)
        {
            Title.SendKeys(title);
            SwitchToHtml.Click();
            Content.SendKeys(content);

            WaitForClickable(SlugButton, 3);

            PublishButton.Click();
            WaitForClickable(PublishButton, 5);

            return(new Uri(Slug.GetAttribute("href")));
        }