Ørsted interview question

How do you locate an attribute in a webpage for regression automation testing?