Author: dsvyatobatsko
Date: 2008-04-14 13:34:15 -0400 (Mon, 14 Apr 2008)
New Revision: 7827
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
Log:
Modified:
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java
===================================================================
---
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-14
17:23:04 UTC (rev 7826)
+++
trunk/test-applications/seleniumTest/src/test/java/org/ajax4jsf/test/base/SeleniumTestBase.java 2008-04-14
17:34:15 UTC (rev 7827)
@@ -1,6 +1,5 @@
package org.ajax4jsf.test.base;
-import org.ajax4jsf.renderkit.RendererUtils;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
@@ -14,11 +13,7 @@
*
*/
public class SeleniumTestBase {
-
- private static final String equalCh = "=";
-
- private static final String idSearch = RendererUtils.HTML.id_ATTRIBUTE + equalCh;
-
+
/** Specifies the time to wait for page rendering */
private static final Integer pageRenderTime = 5000;
@@ -205,7 +200,7 @@
* @return
*/
public String getTextById(String id) {
- return selenium.getText(idSearch + id);
+ return selenium.getText(id);
}
/**
@@ -214,7 +209,7 @@
* @return
*/
public String getValueById(String id) {
- return selenium.getValue(idSearch + id);
+ return selenium.getValue(id);
}
/**
@@ -223,7 +218,7 @@
* @return
*/
public void clickById(String id) {
- selenium.click(idSearch + id);
+ selenium.click(id);
checkJSError();
}
@@ -234,7 +229,7 @@
* @return
*/
public boolean isVisibleById(String id) {
- return selenium.isVisible(idSearch + id);
+ return selenium.isVisible(id);
}
/**
Show replies by date