Is there a way to add a class to a specific element?
I attempted to use the classList.add
method in JavaScript, but it didn't work 😞
await driver.findElement(By.css(".promotion-code-group.promo-shown .promo-selector")).classList.add("show");
TypeError: Cannot read property 'add' of undefined
I'm looking for guidance on using Selenium with JavaScript. Any help would be greatly appreciated. Thank you all in advance!