Currently I need to find elements, that have at least one or more words from some array.
Here is the code that I have:
collect(['some', 'words'])->each(function ($word) {
$found = $this->driver->findElements(
WebDriverBy::xpath("//div[contains(text(), '$word')]")
);
});
Is is possible somehow to make it using one findElements()
call and pass the array there?