Exemplo n.º 1
0
 public void CreateNewSnippet(SnippetData snippet)
 {
     driver.FindElement(By.LinkText("New Snippet")).Click();
     driver.FindElement(By.Name("snippet")).Click();
     driver.FindElement(By.Name("snippet")).SendKeys(snippet.SnippetText);
     driver.FindElement(By.CssSelector("input")).Click();
 }
Exemplo n.º 2
0
        public void test(SnippetData snippetData)
        {
            SnippetData snippet = new SnippetData(snippetData.SnippetText);

            app.Snippets.CreateNewSnippet(snippet);
            SnippetData newSnippet = app.Snippets.GetSnippetCreatedData();

            Assert.AreEqual(snippet.SnippetText, newSnippet.SnippetText);
        }