Author: nbelaevski
Date: 2009-04-06 17:53:33 -0400 (Mon, 06 Apr 2009)
New Revision: 13401
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
Log:
GraphValidatorTest updated
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java 2009-04-06
21:46:54 UTC (rev 13400)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/GraphValidatorTest.java 2009-04-06
21:53:33 UTC (rev 13401)
@@ -64,13 +64,13 @@
assertNotPresent(tfAgeErrMsg);
writeStatus("Name must be between 3 and 12 at length. Type shorter
one");
- type(tfNameId, "Mi");
+ selenium.type(tfNameId, "Mi");
writeStatus("Email must be an email. Type not a well-formed email");
- type(tfEmailId, "notemail");
+ selenium.type(tfEmailId, "notemail");
writeStatus("Age must be between 18 and 100. Type less than that");
- type(tfAgeId, "3");
+ selenium.type(tfAgeId, "3");
writeStatus("Try to save an input");
clickAjaxCommandAndWait(saveBtn);
@@ -81,9 +81,9 @@
writeStatus("Correct the input and resubmit form. Error messages have to
disappear");
- type(tfNameId, "Mick");
- type(tfAgeId, "33");
- type(tfEmailId, "email(a)ya.com");
+ selenium.type(tfNameId, "Mick");
+ selenium.type(tfAgeId, "33");
+ selenium.type(tfEmailId, "email(a)ya.com");
writeStatus("Try to save an input once more");
clickAjaxCommandAndWait(saveBtn);
@@ -159,7 +159,7 @@
}
private void spinnerManualInput(String value, int n) {
- type("xpath=//table[@id='" + getParentId() +
"_form1:table:"+n+":time']/tbody/tr/td/input", value);
+ selenium.type("xpath=//table[@id='" + getParentId() +
"_form1:table:"+n+":time']/tbody/tr/td/input", value);
}
@Override