use of com.wikia.webdriver.pageobjectsfactory.pageobject.DabbletComPageObject in project selenium-tests by Wikia.
the class EmbedMapTests method EmbedMapTests_004_VerifyEmbedMapOutsideWikia.
@Test(enabled = false, groups = { "EmbedMapTests_004", "EmbedMapTests", "InteractiveMaps" })
@Execute(asUser = User.USER)
public void EmbedMapTests_004_VerifyEmbedMapOutsideWikia() {
WikiBasePageObject base = new WikiBasePageObject();
InteractiveMapsPageObject specialMap = base.openSpecialInteractiveMaps(wikiURL);
InteractiveMapPageObject selectedMap = specialMap.clickMapWithIndex(InteractiveMapsContent.SELECTED_MAP_INDEX);
selectedMap.verifyMapOpened();
selectedMap.clickEmbedMapCodeButton();
selectedMap.verifyEmbedMapDialog();
selectedMap.clickEmbedMapCodeButton(InteractiveMapPageObject.embedMapDialogButtons.SMALL);
String mapCode = selectedMap.getEmbedMapCode();
DabbletComPageObject outPage = new DabbletComPageObject(driver);
outPage.openOutPage();
outPage.typeHtmlCode(mapCode);
outPage.verifyMapEmbed();
}
Aggregations