Author: mgencur(a)redhat.com
Date: 2009-10-13 09:52:35 -0400 (Tue, 13 Oct 2009)
New Revision: 11579
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java
Log:
added waittime before making snapshot in func tests
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java
===================================================================
---
branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java 2009-10-13
13:14:55 UTC (rev 11578)
+++
branches/enterprise/JBPAPP_4_3_FP01/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java 2009-10-13
13:52:35 UTC (rev 11579)
@@ -40,6 +40,7 @@
private String timeout = "30000";
private boolean icefacesDetection = false;
private long icefacesWaitTime = 1000;
+ private long windowMaximizeWaitTime = 5000L;
private final String ICEFACES_CONNECTION_STATUS =
"xpath=//div[@class='iceOutConStat connectionStatus']";
private final String ICEFACES_IDLE_VISIBLE =
"xpath=//div[@class='iceOutConStatInactv
connectionStatusInactv'][@style='visibility: visible;']";
@@ -205,6 +206,13 @@
public void captureScreenshot(String path)
{
windowMaximize();
+ try
+ {
+ Thread.sleep(windowMaximizeWaitTime);
+ }
+ catch (InterruptedException e)
+ {
+ }
super.captureScreenshot(path);
}
Show replies by date