We should return here the text of the element instead of the test: 
https://github.com/mozilla-b2g/gaia/pull/13607/files#diff-5f7160f3480ec3badf5289451905b917R33