elb-alexander
Re:Show HN: Walker.js – open-source, vendor-agnostic autotrack library
on Thursday June 30, 2022 @12:51PM (#31935246)
We focus on analytics, yes. But you can also achieve your goal with it as far as I understood. Once you've described a page you can work with selectors pretty well.
document.querySelector('[data-elb="product"][data-elbaction="click:add"]').click();
Also good to test correct implementations with Selenium e.g. It's way more robust than working with CSS classes. Just work with the attribute selectors.