Please find the HTML text
<a id="id_1008326" class="activity">
<strong>heizil</strong> :
<label id="check_label"> " First Device Test"
</label>
<a id="id_10808296" class="activity">
<strong>riya</strong>:
<label id="check_label"> " Second Device Test"
</label>
I'm unable to fetch both the values present in strong tag as both of them are sharing same class, can we apply some conditions based on text in label tag (" First Device Test" / " Second Device Test" ) as ' label id=check_label ' is same and both id_ (id="id_1008326" , id="id_10808296" )is not constant it varies repeatedly.
using the below code line
System.out.println(driver.findElement(By.xpath("//a[@class='activity']/strong")).getText());
I'm only able to fetch heizil
Expecyed Output : heizil,riya