/** * @author Brian Wing Shun Chan */ public class TearDownBlogsEntryCPTest extends BaseTestCase { public void testTearDownBlogsEntryCP() throws Exception { int label = 1; while (label >= 1) { switch (label) { case 1: selenium.open("/web/guest/home/"); loadRequiredJavaScriptModules(); for (int second = 0;; second++) { if (second >= 90) { fail("timeout"); } try { if (selenium.isElementPresent("link=Control Panel")) { break; } } catch (Exception e) { } Thread.sleep(1000); }