We all know how to get Selector via "hand".
- Hover the cursor over the image and right click mouse.
- Select Inspect.
- See the highlighted image code.
- Right click on the highlighted code.
- Select Copy > Copy selector.
But how do it via code?
The above 5 steps in an animated gif: https://i.stack.imgur.com/KEXyF.gif
I use C#, selenium library. I have a list of elements. And I want to iterate over it and copy the Selector of each individual element. My programming skills are terrible, so I would appreciate any comments even if it's technically impossible. My wanderings on chrome, and the torture of the gpt chat did not give me anything