Author: jharting
Date: 2010-09-10 10:19:11 -0400 (Fri, 10 Sep 2010)
New Revision: 13734
Modified:
branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumDateSelector.java
Log:
Minor changes in functional tests.
Modified:
branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumDateSelector.java
===================================================================
---
branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumDateSelector.java 2010-09-10
14:17:32 UTC (rev 13733)
+++
branches/community/Seam_2_2/src/test/ftest/src/main/org/jboss/seam/example/common/test/selenium/SeleniumDateSelector.java 2010-09-10
14:19:11 UTC (rev 13734)
@@ -56,7 +56,7 @@
String calMonth = stk.nextToken().trim();
int steps = monthStepsCount(calMonth, month);
- movement(browser, "xpath=//div[@class='rich-calendar-tool-btn' and
text()='<']", "xpath=//div[@class='rich-calendar-tool-btn'
and text()='>']", steps);
+ movement(browser, "xpath=//div[@class='rich-calendar-tool-btn' and
normalize-space(text())='<']",
"xpath=//div[@class='rich-calendar-tool-btn' and
normalize-space(text())='>']", steps);
}
@Override
@@ -69,7 +69,7 @@
String calYear = stk.nextToken().trim();
int steps = yearStepsCount(calYear, year);
- movement(browser, "xpath=//div[@class='rich-calendar-tool-btn' and
text()='<<']",
"xpath=//div[@class='rich-calendar-tool-btn' and
text()='>>'", steps);
+ movement(browser, "xpath=//div[@class='rich-calendar-tool-btn' and
normalize-space(text())='<<']",
"xpath=//div[@class='rich-calendar-tool-btn' and
normalize-space(text())='>>']", steps);
}
},