Beispiel #1
0
        public void FillArticleTemplate()
        {
            UpdateStep("Fill the article template");
            WriteTitle("EI Full Flow");
            SearchImage("cat");
            CropImagePopUp cropImagePopUp = DragImage(0);

            cropImagePopUp.ClickOnCropImageBtn();
            cropImagePopUp.ClickOnEditokBtn();
            WriteDec("kashkosh");
            WriteTags(new BsonArray {
                "test1", "test2", "test3"
            });
            PreviewPage previewPage = ClickOnPreviewBtn();
            PostPage    postPage    = previewPage.ClickOnPublishBtn();
        }
Beispiel #2
0
        public void DragAndDropImages()
        {
            UpdateStep("Dragging images to media drop boxes..");
            Thread.Sleep(2000);
            _browserHelper.WaitUntillTrue(() => dropMedia.ToList().Count() >= 4, "Media boxes failed to load");
            _browserHelper.WaitUntillTrue(() => imagesResults.ToList().Count() == 30, "There were no 30 results images.");

            _browserHelper.WaitUntillTrue(() =>
            {
                dropMedia.ToList().ForEach(m =>
                {
                    _browserHelper.DragElement(imagesResults.FirstOrDefault(), m);
                    CropImagePopUp cropImagePopUp = new CropImagePopUp(_browser);
                    cropImagePopUp.ClickOnCropImageBtn();
                    cropImagePopUp.ClickOnEditokBtn();
                });

                return(true);
            });
        }