Needed some help with pattern matching in Selenium. I am trying to read the following inner div tags,
<div>
<div class="xyz one"></div>
<div class="xyz two"></div>
<div class="xyz three"></div>
</div>
Is there a way I can do this? Any suggestions would be much appreciated.
Cheers
Here’s an XPath that you can use in order to select all div tags that contain the text ‘xyz’.
So in order to use this, you’d use this line, which creates a collection of all the divs with the text ‘xyz’