Author: lfryc(a)redhat.com
Date: 2009-12-02 07:26:10 -0500 (Wed, 02 Dec 2009)
New Revision: 16035
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/SeleniumLoggingTestListener.java
Log:
- catching any throwable inside SeleniumLoggingTestListener.logStatus prevents selenium
errors to knock down all of the following tests
- added frame selection before logging (getEval)
Modified:
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/SeleniumLoggingTestListener.java
===================================================================
---
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/SeleniumLoggingTestListener.java 2009-12-02
12:14:25 UTC (rev 16034)
+++
branches/sandbox/rf-demo-ftest-iexplore/src/test/java/org/jboss/richfaces/integrationTest/SeleniumLoggingTestListener.java 2009-12-02
12:26:10 UTC (rev 16035)
@@ -97,7 +97,12 @@
if (selenium != null) {
String eval = String.format("/*\n%s\n%s\n%s\n*/", line, message, line);
- selenium.getEval(eval);
+ try {
+ selenium.selectFrame("relative=top");
+ selenium.getEval(eval);
+ } catch (Throwable e) {
+ e.printStackTrace();
+ }
}
}
Show replies by date