I have written this following source code,
<div id="groupContainer" class="abcdef">
<ul id="GroupContactListWrapper" class="list-wrapper">
<li class="contactNameItemContainer">
<div class="contactNameItem">
<span class="name">Name</span>
</div>
</li>
<li class="contactNameItemContainer">
<div class="contactNameItem">
<span class="name">Name1</span>
</div>
</li>
</ul>
</div>
How can I retrieve the names (Name, Name1) in a list variable? I tried using the XPath to "Get Text" keyword but only returns the first one.
//div[@id='groupContainer']//li[@class='contactNameItemContainer']//span
Please help me with a suitable answer.