Added setElementTextToVariable