public string CreatePost() { EchoPage echoPage = new EchoPage(_browser); EditorPage editorPage = echoPage.ClickOnEditorBtn(); ArticleBase articleBase = editorPage.ClickOnArticle(); articleBase.WriteTitle(_title); articleBase.SearchImage("cats"); CropImagePopUp cropImagePopUp = articleBase.DragImage(0); cropImagePopUp.ClickOnCropImageBtn(); cropImagePopUp.ClickOnEditokBtn(); articleBase.WriteDec(CreateRendomText()); _browser.BrowserHelper.WaitUntillTrue(() => { _browserHelper.WaitUntillTrue(() => { articleBase.WriteTags(new BsonArray(new List <string>() { "Atest", "BTest", "CTest" })); return(articleBase.GetTagsValue().Count >= 3); }); return(articleBase.GetTagsValue().Count > 0); }, "Failed to add tags"); PreviewPage previewPage = articleBase.ClickOnPreviewBtn(); PostPage postPage = previewPage.ClickOnPublishBtn(); return(_title); }