Able to locate all div elements in UI page using this XPATH locator : //div[contains(.,'')]
irrespective of the text inside them. What does .,''
mean ?
Consider below example:
XPath to specifically select div
with text - 'Apple'
would be //div[contains(.,'Apple')]
.
What is its CSS equivalent ?
<div>
<span> Apple </span>
</div>