Where is `element` defined?
This method probably doesn't work, please add a test for it