As part of building an autotest on JS + Selenium Web + node JS I check with the help of selectors and promises the text properties of one of the elements on the page and I want to compare with the text properties on another page. How to do it? How to compare promises? I tried to redo it using async / await, but I have not figured it out yet, as there are not enough working examples. Properties we get something like this:

function getZ () { return driver.findElements(By.css("div#box-campaigns.box s.regular-price")) .then(result => result.map(z => z.getCssValue(["color"]))) .then(res => Promise.all(res)) }; getZ().then(z => { // тут доступна z console.log(z,"!!!!!!!+++++"); }); 

    0