$$
The $$
command is a short and handy way in order to fetch multiple elements on the page.
It returns a ChainablePromiseArray
containing a set of WebdriverIO elements.
інформація
As opposed to the $$
attached to the browser object
this command queries elements based on a root element.
You can chain $
or $$
together without wrapping individual commands into await
in order
to walk down the DOM tree, e.g.:
const imageSrc = await $$('div')[1].nextElement().$$('img')[2].getAttribute('src')