IDEMPIERE-92 Implement Selenium testing framework. Added instanceName for selenium script.

This commit is contained in:
Heng Sin Low 2013-01-16 13:15:11 +08:00
parent 8619761edf
commit ea9830767d
3 changed files with 7 additions and 1 deletions

View File

@ -37,6 +37,7 @@ import java.util.Vector;
import java.util.logging.Level;
import java.util.regex.Pattern;
import org.adempiere.webui.AdempiereWebUI;
import org.adempiere.webui.LayoutUtils;
import org.adempiere.webui.component.Button;
import org.adempiere.webui.component.Column;
@ -240,8 +241,9 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
this.setTitle(Msg.getMsg(Env.getCtx(), "Find").replaceAll("&", "") + ": " + title);
this.setClosable(false);
this.setSizable(true);
this.setMaximizable(true);
this.setMaximizable(false);
this.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "findWindow");
this.setId("findWindow_"+targetWindowNo);
}

View File

@ -22,6 +22,7 @@ import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import org.adempiere.webui.AdempiereWebUI;
import org.adempiere.webui.component.Button;
import org.adempiere.webui.component.ConfirmPanel;
import org.adempiere.webui.component.Label;
@ -132,6 +133,7 @@ public class WChat extends Window implements EventListener<Event>, DialogEvents
*/
private void staticInit () throws Exception
{
this.setAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "chat");
this.appendChild(mainPanel);
mainPanel.setStyle("position:absolute; height:90%; width:95%; border: none; background-color: white;");
//

View File

@ -26,6 +26,7 @@ import java.util.ArrayList;
import java.util.Vector;
import java.util.logging.Level;
import org.adempiere.webui.AdempiereWebUI;
import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.component.ConfirmPanel;
import org.adempiere.webui.component.Listbox;
@ -92,6 +93,7 @@ public class WRecordInfo extends Window implements EventListener<Event>
this.setBorder("normal");
this.setSizable(true);
this.setClosable(true);
this.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "recordInfo");
try
{