[seam-commits] Seam SVN: r11571 - branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Oct 12 10:14:08 EDT 2009
Author: mgencur at redhat.com
Date: 2009-10-12 10:14:08 -0400 (Mon, 12 Oct 2009)
New Revision: 11571
Modified:
branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java
Log:
JBSEAM-4423 added wait time for window to maximize before screenshot
Modified: branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java 2009-10-09 15:07:38 UTC (rev 11570)
+++ branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeamSelenium.java 2009-10-12 14:14:08 UTC (rev 11571)
@@ -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);
}
More information about the seam-commits
mailing list