Verifying width and height?

I cannot get it to work… I use this script:
WebUI.getElementWidth(findTestObject(‘STW_headerimage_homepage/ul_hero-team (1)’))

width = 772

I tried:
WebUI.verifyEqual(WebUI.getElementWidth(‘STW_headerimage_homepage/ul_hero-team (1)’), 772)
WebUI.verifyEqual(WebUI.getElementWidth, 772)
…and other variations to no avail, what am I doing wrong?