// since we need to wait for that time, and we don't know how much is never.
newPage.clickWantedLink(space, "NewLinkedPage", false);
WYSIWYGEditPage editNewLinkedPage = new WYSIWYGEditPage();
// since the edit mode loads as a result of a redirect that comes from a async call made by the click, we need
// to wait for the page to load
editNewLinkedPage.waitUntilElementIsVisible(By
.xpath("//div[@id='mainEditArea']//div[@class='gwt-Label' and contains(text(), 'WYSIWYG')]"));
// make sure we're in edit mode (of the new page)
Assert.assertTrue(getUtil().isInWYSIWYGEditMode());
Assert.assertEquals(space, editNewLinkedPage.getMetaDataValue("space"));
Assert.assertEquals("NewLinkedPage", editNewLinkedPage.getMetaDataValue("page"));