cant get element from executeJs method

unkown type error when trying to get Element.class by using executeJs.then

Are you trying to pass an element reference back to the server side? I think that is not supported, but not 100% sure.