click will do the same as you click on the UI elements, but I encouter problem when I try click text field 1, I could not see the text field get focused and ready for input after I run the applescript, while I click the text field using mouse I can make the text field focused and ready for input.
I hope my script can really simulate user operation, so need to operate click text field to make it focused and then use keystroke to input something. I like Applescript in that it makes me simulate user operation and make a lot of sense in testing the GUI.
So is there a way to solve the problem in my first post or maybe Applescript staff can add the function like that.