Re:Show HN: Walker.js – open-source, vendor-agnostic autotra...
by egfx on Thursday June 30, 2022 @12:31PM
(#31934947)
Is this purely for analytics and listening for events? I would like the opposite, walking through an event list to mechanize UI on the frontend without an extension or from node (just via a front-end script tag). I bookmarked something like this once.
[ Parent
| on HN ]
Re:Show HN: Walker.js – open-source, vendor-agnostic autotra...
by elb-alexander 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.