Please follow this tutorial to generate xpath and selectors with and without a particular attribute-