use of com.wikia.webdriver.pageobjectsfactory.pageobject.special.SpecialWhatLinksHerePageObject in project selenium-tests by Wikia.
the class PortableInfoboxTests method verifyImagesInWhatLinksHerePage.
@Test(groups = { "PortableInfoboxTests", "PortableInfobox_002" })
public void verifyImagesInWhatLinksHerePage() {
new ArticleContent().push(String.format("[[%s]]", PageContent.INFOBOX_2), "Infobox2_WhatLinksHere");
// provide an article linking to testing Infobox
new TemplateContent().push(INFOBOX2_TEMPLATE, PageContent.INFOBOX_2);
new ArticleContent().push(INFOBOX2_INVOCATION, PageContent.INFOBOX_2);
ArticlePageObject article = new ArticlePageObject();
article.open("Infobox2_WhatLinksHere");
String articleName = article.getArticleName();
SpecialWhatLinksHerePageObject whatLinksHere = article.openSpecialWhatLinksHere(wikiURL);
whatLinksHere.clickPageInputField().typeInfoboxImageName("Infobox2").clickShowButton();
Assertion.assertTrue(whatLinksHere.whatLinksHereContainsArticleName(articleName));
}
Aggregations