It's good practice in bdd. Scenarios are written from a user stand point, so referring to hidden/internal html attributes instead of what is simply visible in the interface makes them not as clear as they could be.