-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi ZK Forum, I need help creating a custom attribute which should show when we "inspect element" in the browser. I need a static id for automation testing purposes For example,
<listbox static-id="searchResultListbox">
how to create a custom attribute like 'static-id' above? I want this static-id element to be available for all components.
The possible methods are explained in a dedicated Section of our Testing Tips.
in short:
if you don't need the DOM id use ZK's component/widget ID jq('$myWin $myButton')
if you need a DOM id you have to implement an IdGenerator and ensure yourself the generated IDs are unique across the whole desktop (browser tab)
Asked: 2020-03-23 03:57:10 +0800
Seen: 8 times
Last updated: Mar 23 '20