23 Feb 2022 08:21 AM
Solved! Go to Solution.
15 Mar 2022 10:34 AM
Hi
Without knowing how your page looks, it is impossible to give you an exact answer, so here are the things you can try:
We are using document.querySelector("#mat-dialog-7 > app-order-placed-modal > mat-dialog-content > div > div > div > span") to find the value you want to capture. You can enter that in the console of the developer tools of your browser to see if that is actually an item that can be found on the page.
Your selector is highly depending on the structure of the html, so it might just change randomly and therefore can not be found. It is always best to have an id on the element to capture, to be 100% that it can be captured.
Additionally check that the page this element is on, is actually running the javascript agent. If this element is in a frame or an iframe, we will not be able to capture this element, unless the javascript agent is available. Having it available on a top frame is not enough.
Also check this: Is this value available all the time or is it only available at random points in time? We are capturing the data whenever an action FINISHES, so if you have values that change or only get shown intermediately, it can be a problem as well.
And as a last thing: run "dtrum.getAndEvaluateMetaData()". It will returns an object showing you the currently available metadata we can capture for this page and might also show why the value is missing.
Simon