use of com.wikia.webdriver.common.skin.SkinHelper in project selenium-tests by Wikia.
the class ArticlePage method open.
public ArticlePage open() {
getUrl(urlBuilder.getUrlForWiki(Configuration.getWikiName()) + URLsContent.WIKI_DIR + TestContext.getCurrentMethodName());
new SkinHelper(driver).isSkin(Skin.MOBILE_WIKI);
return this;
}
use of com.wikia.webdriver.common.skin.SkinHelper in project selenium-tests by Wikia.
the class CategoryPage method navigateToCategoryMemberPage.
public ArticlePage navigateToCategoryMemberPage() {
new SkinHelper(driver).isSkin(Skin.MOBILE_WIKI);
WebElement member = driver.findElement(categoryMembers);
String memberName = member.getText();
wait.forElementClickable(member);
member.click();
new Loading(driver).handleAsyncPageReload();
PageObjectLogging.logInfo(String.format("You were redirected to page: \"%s\".", memberName));
new SkinHelper(driver).isSkin(Skin.MOBILE_WIKI);
return new ArticlePage();
}
use of com.wikia.webdriver.common.skin.SkinHelper in project selenium-tests by Wikia.
the class CategoryPage method open.
public CategoryPage open(String categoryName) {
this.navigate.toPage(String.format("%s%s", URLsContent.WIKI_DIR, categoryName));
new SkinHelper(driver).isSkin(Skin.MOBILE_WIKI);
PageObjectLogging.logInfo(String.format("%s category page opened", categoryName));
return this;
}
use of com.wikia.webdriver.common.skin.SkinHelper in project selenium-tests by Wikia.
the class Navigation method clickExploreWikiHeader.
public Navigation clickExploreWikiHeader(Skin fromSkin) {
PageObjectLogging.logInfo("Click 'Explore Wiki' header");
wait.forElementClickable(exploreWikiHeader);
exploreWikiHeader.click();
// Mobile wiki opens the main page using AJAX, Mercury reloads the page and opens Mobile Wiki
if (fromSkin == Skin.MOBILE_WIKI) {
loading.handleAsyncPageReload();
} else {
new SkinHelper(driver).isSkin(Skin.MERCURY);
}
return this;
}
use of com.wikia.webdriver.common.skin.SkinHelper in project selenium-tests by Wikia.
the class GuidelinesPage method open.
public GuidelinesPage open() {
driver.get(urlBuilder.getUrlForWiki() + String.format(PATH));
new SkinHelper(driver).isSkin(Skin.MERCURY);
return this;
}
Aggregations