Author: vrockai
Date: 2009-04-21 10:19:28 -0400 (Tue, 21 Apr 2009)
New Revision: 13254
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java
Log:
[selenium] - catching alert
Modified:
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java 2009-04-21
13:51:16 UTC (rev 13253)
+++
branches/JBoss_Portal_Branch_2_7/testsuite/ui-tests/src/org/jboss/portal/test/selenium/portal/EndtoEndPortalAdminTestCase.java 2009-04-21
14:19:28 UTC (rev 13254)
@@ -172,7 +172,12 @@
private void assertPageContains(String pageName, String awaitStr) {
selenium.open(ADR_PORTAL);
selenium.waitForPageToLoad(PAGE_LOAD);
- waitFor(AJAX_LOAD);
+
+ if(selenium.isAlertPresent()){
+ selenium.getAlert();
+ debugPrint("[EndtoEndPortalAdminTestCase] - alert was caught");
+ }
+
selenium.click("link=" + pageName);
selenium.waitForPageToLoad(PAGE_LOAD);
Show replies by date