public void CAP_TC1_CreateArticleWithValidData() { var createArticlePage = new CreateArticlePage(driver); var articleContent = new CreateArticleContent("Test Automation is the key", "Traditional quality assurance has become a bottleneck in the development process and the advancement of test automation. Innovative development teams ..."); createArticlePage.NavigateTo(); createArticlePage.FillCreateArticleForm(articleContent); createArticlePage.AssertCreateArticleWithValidData("Test Automation is the key"); }
public void FillCreateArticleForm(CreateArticleContent articleContent) { Type(Title, articleContent.Title); Type(Content, articleContent.Content); CreateArticleButton.Click(); }