tell web area 1 - UI scripting

I’m trying to do my first UI scripting.

Script Editor doesn’t like “tell web area 1”.

Does anybody have sample code how to fill webform which has text field, pop up button, text entry area and button?

Thanks

set varia to "test"
tell application "Safari" to activate
tell application "System Events"
	tell process "Safari"
		tell window "Test"
			tell group 1
				tell scroll area 1
					tell web area 1
						tell group 1
							tell text field 1
								set value of text field 1 to varia
							end tell
						end tell
					end tell
				end tell
			end tell
		end tell
	end tell
end tell

<AXApplication: “Safari”>
<AXWindow: “Test”>




Attributes:
AXRole: “AXTextField”
AXRoleDescription: “text field”
AXHelp: “(null)”
AXValue (W): “”
AXEnabled: “1”
AXFocused (W): “1”
AXParent: “”
AXWindow: “<AXWindow: “Test”>”
AXTopLevelUIElement: “(null)”
AXPosition: “x=358 y=314”
AXSize: “w=214 h=19”
AXChildren: “<array of size 0>”
AXSelectedText (W): “”
AXSelectedTextRange (W): “pos=7 len=0”
AXNumberOfCharacters: “7”
AXVisibleCharacterRange (W): “pos=0 len=7”
AXInsertionPointLineNumber: “0”

Actions:
AXShowMenu - show menu
AXConfirm - confirm

<AXApplication: “Safari”>
<AXWindow: “Test”>




Attributes:
AXRole: “AXPopUpButton”
AXRoleDescription: “pop up button”
AXHelp: “(null)”
AXEnabled: “1”
AXFocused (W): “1”
AXParent: “”
AXWindow: “<AXWindow: “Test”>”
AXTopLevelUIElement: “(null)”
AXPosition: “x=355 y=342”
AXSize: “w=118 h=22”
AXValue: “Visible”
AXChildren: “<array of size 0>”

Actions:
AXShowMenu - show menu
AXPress - press

<AXApplication: “Safari”>
<AXWindow: “Test”>




Attributes:
AXRole: “AXPopUpButton”
AXRoleDescription: “pop up button”
AXHelp: “(null)”
AXEnabled: “1”
AXFocused (W): “1”
AXParent: “”
AXWindow: “<AXWindow: “Test”>”
AXTopLevelUIElement: “(null)”
AXPosition: “x=355 y=370”
AXSize: “w=220 h=22”
AXValue: “Bank”
AXChildren: “<array of size 0>”

Actions:
AXShowMenu - show menu
AXPress - press

<AXApplication: “Safari”>
<AXWindow: “Test”>





Attributes:
AXRole: “AXTextArea”
AXRoleDescription: “text entry area”
AXHelp: “(null)”
AXFocused (W): “1”
AXParent: “”
AXChildren: “<array of size 0>”
AXWindow: “<AXWindow: “Test”>”
AXTopLevelUIElement: “(null)”
AXPosition: “x=359 y=398”
AXSize: “w=362 h=238”
AXValue (W): “”
AXSelectedText (W): “”
AXSelectedTextRange (W): “pos=12 len=0”
AXNumberOfCharacters: “12”
AXVisibleCharacterRange (W): “pos=0 len=12”
AXInsertionPointLineNumber: “0”
AXSharedTextUIElements: “<array of size 1>”
AXSharedCharacterRange: “pos=0 len=12”

Actions:
AXShowMenu - show menu

<AXApplication: “Safari”>
<AXWindow: “Test”>




Attributes:
AXRole: “AXPopUpButton”
AXRoleDescription: “pop up button”
AXHelp: “(null)”
AXEnabled: “1”
AXFocused (W): “1”
AXParent: “”
AXWindow: “<AXWindow: “Test”>”
AXTopLevelUIElement: “(null)”
AXPosition: “x=355 y=644”
AXSize: “w=220 h=22”
AXValue: “ADS”
AXChildren: “<array of size 0>”

Actions:
AXShowMenu - show menu
AXPress - press

<AXApplication: “Safari”>
<AXWindow: “Test”>




Attributes:
AXRole: “AXPopUpButton”
AXRoleDescription: “pop up button”
AXHelp: “(null)”
AXEnabled: “1”
AXFocused (W): “1”
AXParent: “”
AXWindow: “<AXWindow: “Test”>”
AXTopLevelUIElement: “(null)”
AXPosition: “x=355 y=672”
AXSize: “w=220 h=22”
AXValue: “ADS”
AXChildren: “<array of size 0>”

Actions:
AXShowMenu - show menu
AXPress - press

<AXApplication: “Safari”>
<AXWindow: “Test”>




<AXButton: “Add”>

Attributes:
AXRole: “AXButton”
AXRoleDescription: “button”
AXHelp: “(null)”
AXEnabled: “1”
AXFocused (W): “0”
AXParent: “”
AXWindow: “<AXWindow: “Test”>”
AXTopLevelUIElement: “(null)”
AXPosition: “x=363 y=706”
AXSize: “w=48 h=28”
AXTitle: “Add”

Actions:
AXPress - press

We have dozens of threads about filling forms. Take a look, for example, here:

http://bbs.applescript.net/viewtopic.php?id=12703