Class AdempiereIdGenerator

java.lang.Object
org.adempiere.webui.AdempiereIdGenerator
All Implemented Interfaces:
org.zkoss.zk.ui.sys.IdGenerator

public class AdempiereIdGenerator extends Object implements org.zkoss.zk.ui.sys.IdGenerator
Id generator for selenium ide recording.
You don't need this to run ztl or zk jq selector based test script but it would help to code or troubleshoot the test script.

DON'T use this for other purpose, you have been warned :)

Author:
Carlos Ruiz, hengsin
  • Field Details

  • Constructor Details

    • AdempiereIdGenerator

      public AdempiereIdGenerator()
  • Method Details

    • nextComponentUuid

      public String nextComponentUuid(org.zkoss.zk.ui.Desktop desktop, org.zkoss.zk.ui.Component comp, org.zkoss.zk.ui.metainfo.ComponentInfo compInfo)
      Specified by:
      nextComponentUuid in interface org.zkoss.zk.ui.sys.IdGenerator
    • escapeId

      public static String escapeId(String prefix)
      Generate an id with just alphanumeric characters This is used for ZkUnitTest that requires predictable iDs, f.e. Selenium WARNING: it doesn't work well with non-alphanumeric languages f.e. in Russian the translation for bank and account lead to the same id ____
      Parameters:
      prefix -
      Returns:
    • nextDesktopId

      public String nextDesktopId(org.zkoss.zk.ui.Desktop desktop)
      Specified by:
      nextDesktopId in interface org.zkoss.zk.ui.sys.IdGenerator
    • nextPageUuid

      public String nextPageUuid(org.zkoss.zk.ui.Page page)
      Specified by:
      nextPageUuid in interface org.zkoss.zk.ui.sys.IdGenerator
    • updateZkLocatorAttribute

      public static void updateZkLocatorAttribute(org.zkoss.zk.ui.Component comp)