This question has already been answered:
driver.findElements(By.css("div#box-campaigns.box s.regular-price")) .then(result => result.map(z => z.getCssValue(["color"]))) .then(res =>Promise.all(res) .then(z => console.log(z)) ); you will need to compare the value of Z with the result of another promise, but how to get this value so that you can work with it?
Ps. I had no business with promises before, but I really want to figure it out