How to generate CSS Selector automatically?
It is easy to write the CSS Selector when there is ID, unique Class or unique attribute is present but it becomes really complicated to get unique cssSelector when there is no unique attribute is there for the element. In this situation we waste a lot of time.
And the way new frameworks evolving and coming in like Playwright, Cypress etc in which cssSelector is supported mostly, it becomes very important that we get robust unique cssSelector automatically so that we can save our precious time.
In this tutorial I have shown how we can automatically generate the unique Css Selector.