RuntimeVariables.replace("Save"));
selenium.waitForPageToLoad("30000");
loadRequiredJavaScriptModules();
assertEquals(RuntimeVariables.replace(
"Your request completed successfully."),
<BUG>selenium.getText("//div[@class='portlet-msg-success']"));
assertEquals(RuntimeVariables.replace("Wiki_Attachment2.jpg"),
selenium.getText("//td[1]/a"));
assertEquals(RuntimeVariables.replace("Showing 2 result."),
</BUG>
selenium.getText("//div[@class='search-results']"));

RuntimeVariables.replace("Save"));
selenium.waitForPageToLoad("30000");
loadRequiredJavaScriptModules();
assertEquals(RuntimeVariables.replace(
"Your request completed successfully."),
selenium.getText("//div[@class='portlet-msg-success']"));
assertEquals(RuntimeVariables.replace("Wiki_Attachment.jpg"),
selenium.getText("//td[contains(.,'Wiki_Attachment')]/a"));
assertEquals(RuntimeVariables.replace("Wiki_Attachment2.jpg"),
selenium.getText("//td[contains(.,'Wiki_Attachment2')]/a"));
assertEquals(RuntimeVariables.replace("Showing 2 results."),
selenium.getText("//div[@class='search-results']"));
