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?
Why does webdriveio getText method return an array?
514 views Asked by Steve Tomlin At
1
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?
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.