_element_ID does not retrieve the current value
Hi,
We want to add the _element_ID to the logging entry in each java script element to have the element ID in case an error occured. The purpose is to faster identify the causing element and to fix the error. Unfortunately it seems that the _element_ID contains always the ID of the element where the _element_ID is used first. For all following java scripts elements the _element_ID will return the same ID.
Is there way to get the correct ID of the java script element?
try {
...
} catch (e) {
logError(_sessionLogger, _element_ID, e);
}
Accepted answer
Hi Alex,
Thanks for pointing this out. This seems like a defect , have raised one - 79498: Element_ID for javascript element shows same id in console