Hi, can someone please help me on how I can click this (Test) folder using inner text? Please note that I cannot use the ID or the class name since it varies depending on the user.

Hi, can someone please help me on how I can click this (Test) folder using inner text? Please note that I cannot use the ID or the class name since it varies depending on the user.
You can achieve this using JavaScript.
Use ChatGPT and paste your span full html code and ask for JavaScript to click on button or image based on your text.
In case if you are facing any difficulties, please share your html code instead of sharing just image. I will try and share you're the appropriate JavaScript solution for the same.
Thanks,
Deenuji Loganathan 👩💻
Automation Evangelist 🤖
Follow me on LinkedIn 👥
-------------------------------------------------------------------------------------------------------------
If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀