If there are multiple items in canvas then xpath of all theses items is same.
- Is there any way to click any item in canvas by its text value?
- If there are multiple items with same text then how to distinguish them?
If there are multiple items in canvas then xpath of all theses items is same.
In such case , you need to create custom xpath to uniquely identify web element.
case 1 - s there any way to click any item in canvas by its text value?
Yes, Create custom xpath using text() function .
Example : - //div[text()=‘katalon studio’]
case 2 - f there are multiple items with same text then how to distinguish them?
Yes, In such cases , you need to need multiple items as array and use index value to get a particular element.
example - //div[text()=‘katalon studio’][1]
Hope this may be helpful.
Regards,
Himanshu