change enterText to use the object properties instead of typing the text