Styrow.dev
Question 42 of 82

How do we get an attribute value in selenium?

Question

How do we get an attribute value in selenium?

Answer

We can get attribute value by using getAttribute(value) method. It returns the value of the attribute passed as a parameter


šŸ“² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.