I am new at testing so my apologies in advance if my question sounds a bit primary.
I am using Selenium and Java to write a test.
I know that webElem
webElem
webElement.getAttribute("href"); webElement.getAttribute("class"); . . .
or to get them all:
Object[] attr = ((JavascriptExecutor)seleniumdriver).executeScript("return arguments[0].attributes);", webElement);