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")));
        }
예제 #2
0
        internal Uri Create(string title, string content)
        {
            Title.SendKeys(title);
            SwitchToHtml.Click();
            Content.SendKeys(content);

            WaitForClickable(By.CssSelector(".edit-slug.button"), 3);

            Publish.Click();
            WaitForClickable(By.Id("publish"), 5);

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