Solved

Help creating a heap event with a different id and react numbers

  • 4 March 2024
  • 1 reply
  • 23 views

Badge

I have a button with no proper ID and I was wondering if I could this data-testid tag.

<button data-testid="copyShareLinkBtn_15106950" >Share</button>

The number is auto-generated with react so I want to use a wildcard.

I’ve tried this but it’s not working. 

[data-testid^=copyShareLinkBtn_]

 

Any help would be greatly appreciated. Thanks

icon

Best answer by Yash Nautiyal 13 May 2024, 11:59

View original

1 reply

Badge

Hi Rita,

Hope you are doing well. Please Check if the data-testid is redacted or not. If not, use an asterik [data-testid=copyShareLinkBtn*]to create an event.
Let me know if you need more detailed steps on this process or any other assistance!

Regards,

Reply