# Select data pont in chart where the CSS name changes

**URL:** <https://community.dynatrace.com/t/select-data-pont-in-chart-where-the-css-name-changes/30939>\
**Category:** Synthetic Monitoring\
**Tags:** browser-monitors, synthetic-monitoring\
**Created:** [March 28, 2021, 11:35pm UTC](https://community.dynatrace.com/t/select-data-pont-in-chart-where-the-css-name-changes/30939 "2021-03-28T23:35:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael\_joseph](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@michael\_joseph](https://community.dynatrace.com/u/michael_joseph)\
**Post date:** [March 28, 2021, 11:35pm UTC](https://community.dynatrace.com/t/select-data-pont-in-chart-where-the-css-name-changes/30939/1 "2021-03-28T23:35:39Z")

</div>

I’m trying to setup a Browser synthetic test that selects a value in a chart that is displayed.&nbsp; When I record the test I see the selector as for example&nbsp;#highcharts-ugkagd6-18 svg g:nth-child(11) g:nth-child(2) path:nth-child(2) but then when I try to playback that name doesn’t exist and it generates a new name.

This is an example of the chart that I’m trying to just open any data point in the chart which should pop up another window.

 ![michael_joseph__0-1616974489219.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/8/c8acc953add286c40852bb3f7f9371e852f16d6c.png)

Any help would be greatly appreciated.

Mike

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [June 17, 2021, 9:05pm UTC](https://community.dynatrace.com/t/select-data-pont-in-chart-where-the-css-name-changes/30939/2 "2021-06-17T21:05:40Z")

</div>

[@michael\_joseph\_](https://community.dynatrace.com/user/26266)&nbsp;are you using browser click paths for this?

---

<div class="post-metadata">

**Author:** ![hannahmac](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/hannahmac/32/41823_2.png) [@hannahmac](https://community.dynatrace.com/u/hannahmac)\
**Post date:** [June 18, 2021, 9:13am UTC](https://community.dynatrace.com/t/select-data-pont-in-chart-where-the-css-name-changes/30939/3 "2021-06-18T09:13:40Z")

</div>

For locators with a dynamic id, the monitor will need to find the element using a different method. Is there something about the element that never changes? Usually there are other tags we can use to select the element instead.

---

<div class="post-metadata">

**Author:** ![michael\_joseph](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@michael\_joseph](https://community.dynatrace.com/u/michael_joseph)\
**Post date:** [June 18, 2021, 2:53pm UTC](https://community.dynatrace.com/t/select-data-pont-in-chart-where-the-css-name-changes/30939/4 "2021-06-18T14:53:42Z")

</div>

I was able to accomplish what I needed by using javascript and getElementbyId and drilling through the childnodes until I identified the one with the innerHTML response that had the data point.
