use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticlePageObject method openSrcModeWithRedLinks.
public SourceEditModePageObject openSrcModeWithRedLinks(int linkNumber) {
WebElement redLinkToClick = redLinks.get(linkNumber);
CreateArticleModalComponentObject articleModal = clickRedLink(redLinkToClick);
articleModal.createPageWithBlankLayout("");
return new SourceEditModePageObject(driver);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifySectionEditEditor.
public void verifySectionEditEditor(Editor expectedEditor) {
switch(expectedEditor) {
case VE:
VisualEditorPageObject ve = openVEModeWithSectionEditButton(0);
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
break;
case CK:
VisualEditModePageObject ck = openCKModeWithSectionEditButton(0);
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
break;
case SRC:
SourceEditModePageObject src = openSrcModeWithSectionEditButton(0);
src.verifySourceOnlyMode();
src.clickPublishButton();
break;
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifyURLActionEditEditor.
public void verifyURLActionEditEditor(Editor expectedEditor, String articleName, String wikiURL) {
switch(expectedEditor) {
case CK:
VisualEditModePageObject ck = navigateToArticleEditPage(wikiURL, articleName);
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
break;
case SRC:
SourceEditModePageObject src = navigateToArticleEditPageSrc(wikiURL, articleName);
src.verifySourceOnlyMode();
src.clickPublishButton();
break;
default:
throw new NoSuchElementException("Invalid expected editor chosen: " + expectedEditor.name());
}
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class WikiBasePageObject method openSrcModeWithSectionEditButton.
public SourceEditModePageObject openSrcModeWithSectionEditButton(int section) {
WebElement sectionEditButton = sectionEditButtons.get(section);
wait.forElementVisible(sectionEditButton);
sectionEditButton.click();
PageObjectLogging.log("openSrcModeWithSectionEditButton", "Src edit button clicked at section: " + section, true, driver);
return new SourceEditModePageObject(driver);
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject in project selenium-tests by Wikia.
the class ArticlePageObject method verifyMainEditEditor.
public void verifyMainEditEditor(Editor expectedEditor) {
switch(expectedEditor) {
case VE:
VisualEditorPageObject ve = openVEModeWithMainEditButton();
ve.verifyVEToolBarPresent();
ve.verifyEditorSurfacePresent();
break;
case CK:
VisualEditModePageObject ck = openCKModeWithMainEditButton();
Assertion.assertTrue(ck.isContentLoaded(), "Content is not loaded");
ck.clickPublishButton();
break;
case SRC:
SourceEditModePageObject src = openSrcModeWithMainEditButton();
src.verifySourceOnlyMode();
src.clickPublishButton();
break;
}
}
Aggregations