Search in sources :

Example 1 with CreateArticleModalComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject in project selenium-tests by Wikia.

the class ArticlePageObject method openCKModeWithRedLinks.

public VisualEditModePageObject openCKModeWithRedLinks(int linkNumber) {
    WebElement redLinkToClick = redLinks.get(linkNumber);
    CreateArticleModalComponentObject articleModal = clickRedLink(redLinkToClick);
    articleModal.createPageWithBlankLayout("");
    return new VisualEditModePageObject();
}
Also used : VisualEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject) CreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject) VECreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.VECreateArticleModalComponentObject) WebElement(org.openqa.selenium.WebElement)

Example 2 with CreateArticleModalComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject in project selenium-tests by Wikia.

the class PortableInfobox method clickRedLinkWithIndex.

public CreateArticleModalComponentObject clickRedLinkWithIndex(int index) {
    WebElement selectedRedLink = redLinks.get(index);
    clickLink(selectedRedLink);
    return new CreateArticleModalComponentObject(driver);
}
Also used : CreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject) WebElement(org.openqa.selenium.WebElement)

Example 3 with CreateArticleModalComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject in project selenium-tests by Wikia.

the class ArticlePageObject method createArticleInSrcUsingDropdown.

public SourceEditModePageObject createArticleInSrcUsingDropdown(String articleTitle) {
    contributeDropdown.click();
    wait.forElementVisible(addArticleInDropdown);
    CreateArticleModalComponentObject articleModal = clickArticleInDropDown(addArticleInDropdown);
    articleModal.createPageWithBlankLayout(articleTitle);
    return new SourceEditModePageObject(driver);
}
Also used : SourceEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject) CreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject) VECreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.VECreateArticleModalComponentObject)

Example 4 with CreateArticleModalComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject 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);
}
Also used : SourceEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject) CreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject) VECreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.VECreateArticleModalComponentObject) WebElement(org.openqa.selenium.WebElement)

Example 5 with CreateArticleModalComponentObject

use of com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject in project selenium-tests by Wikia.

the class ArticlePageObject method createArticleInCKUsingDropdown.

public VisualEditModePageObject createArticleInCKUsingDropdown(String articleTitle) {
    scrollAndClick(contributeDropdown);
    wait.forElementVisible(addArticleInDropdown);
    CreateArticleModalComponentObject articleModal = clickArticleInDropDown(addArticleInDropdown);
    articleModal.createPageWithBlankLayout(articleTitle);
    return new VisualEditModePageObject();
}
Also used : VisualEditModePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject) CreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject) VECreateArticleModalComponentObject(com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.VECreateArticleModalComponentObject)

Aggregations

CreateArticleModalComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.CreateArticleModalComponentObject)5 VECreateArticleModalComponentObject (com.wikia.webdriver.pageobjectsfactory.componentobject.modalwindows.VECreateArticleModalComponentObject)4 WebElement (org.openqa.selenium.WebElement)3 SourceEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.SourceEditModePageObject)2 VisualEditModePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.article.editmode.VisualEditModePageObject)2