To generate the XPath and css Selector, set the attribute filter before starting the recording..
To set the attribute just follow below these two simple steps-
- Click on Set Attribute filter button.
- Uncheck/Check the Attributes with which you want to generate the XPath and css Selector.