I want to just display (not compare) the count of clinic_id, lets say I have response like
<role_select>
<username>User1</username>
<first_name>First1</first_name>
<last_name>Last1</last_name>
<middle_name>T</middle_name>
<company_id>020550</company_id>
<clinic_id>00122</clinic_id>
</role_select>
<role_select>
<username>User2</username>
<first_name>First2</first_name>
<last_name>Last2</last_name>
<middle_name>T</middle_name>
<company_id>020551</company_id>
<clinic_id>00123</clinic_id>
</role_select>
<role_select>
<username>User3</username>
<first_name>First3</first_name>
<last_name>Last3</last_name>
<middle_name>T</middle_name>
<company_id>020553</company_id>
<clinic_id>00124</clinic_id>
</role_select>
I have 2162 different clinic_id's. I want to display (not compare to any other value), is this possible in x path expression? or do I need to use script assertion(java script)?
I tried count(//ns1:role_select), this way I have to change expected value for every environment, instead I want to display the clinic_id count value