Why does webdriveio getText method return an array?

526 views Asked by At

The documentation on the website indicates it is supposed to return a string. Is the array representative of each element found? Or is it a bug?

1

There are 1 answers

0
Kevin Lamping On

Hard to confirm without seeing the actual code used, but if you send a selector that matches multiple elements, it will return an array of strings for each element.