24 Sep 2019 08:08 AM - last edited on 27 Apr 2021 12:39 PM by MaciejNeumann
HI ,
I am trying to display some values on a dashboard. I am using Easytravel application , and want to display totalcost value using CSS selector. I created a property under Session and user action properties. While the capture expression is giving proper results when testing on chrome browser , only null value is shown on dashboard.
Capture expression:
#iceform\\3aj_idt77-11-1 > span
When I am testing this expression in chrome
document.querySelector('#iceform\\3aj_idt77-11-1 > span').innerHTML
"$ 1461.98"
Can someone help me find out what i am missing ?
Solved! Go to Solution.
24 Sep 2019 09:37 AM
When you want to capture total cost:
please look on sourcecode:
as you can see you have class .totalCosts which is used only once on this page, so it's good for extracting properties. You should keep your rules as simple as possible.
Sebastian
24 Sep 2019 11:40 AM
Hi @sebastian k. thanks for your reply. Are you suggesting me to use Request attribute ?
24 Sep 2019 11:45 AM
No I suggest using different css path.
25 Sep 2019 02:05 PM
Thanks @sebastian k. , it is working for me now.
10 Jun 2021 04:34 PM
what is the working configuration?