Inject JS script is not supported for this element

I’m trying running the activity Inject Js with the js below, but i i got the error: Inject Js Script ‘Chrome_RenderWidgetHost…’: Inject JS script is not supported for this element.

function teste() {
document.getElementsByClassName(“tileItem”)[0];
return retorno;
}