[HELP PLEASE]How do i get Attribute value if the object is not visible

println("Visibility "+WebUI.waitForElementVisible(findTestObject(‘Object Repository/DashbordObject/automationAssertionObject’), 30))

And I got this
Visibility false

thanks
please help me out

WebUI.waitForElementPresent(findTestObject(‘path/to/test-object’), 30)

def href = WebUI.getAttribute(findTestObject(‘path/to/test-object’), 'href')

WebUI.comment("The href is: ${href}")