Author: Alex.Kolonitsky
Date: 2009-09-11 13:49:10 -0400 (Fri, 11 Sep 2009)
New Revision: 15546
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
Log:
revert
Modified:
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java
===================================================================
---
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-09-11
17:19:52 UTC (rev 15545)
+++
branches/community/3.3.X/examples/photoalbum/tests/src/test/java/org/richfaces/photoalbum/RealWorldHelper.java 2009-09-11
17:49:10 UTC (rev 15546)
@@ -200,25 +200,13 @@
if (isLogined(selenium)) {
logout(selenium);
}
+ selenium.click(HtmlConstants.LogInOutArea.LOGIN_ID);
+ try {
+ Thread.sleep(5000);
+ }catch (Exception e) {
+ Assert.fail("Test failed caused by: " + e);
+ }
- for (int i = 0; i < 3; i++) {
- if (selenium.getXpathCount(HtmlConstants.LogInOutArea.LOGIN_ID).intValue()
> 0) {
- selenium.click(HtmlConstants.LogInOutArea.LOGIN_ID);
- try {
- Thread.sleep(5000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- Assert.fail("Error : " + e.getMessage());
- }
- break;
- }
-
- String photoalbumPath =
"//*[@id='mainform:bodyPanel_body']/a";
- if (selenium.getXpathCount(photoalbumPath).intValue() > 0) {
- selenium.click(photoalbumPath);
- }
- }
-
Assert.assertTrue(selenium.isVisible(HtmlConstants.LoginPanel.usernameId), "Input
for username in not visible");
Assert.assertTrue(selenium.isVisible(HtmlConstants.LoginPanel.passwordId), "Input
for password in not visible");
Show replies by date