#!/usr/bin/python
from dogtail.procedural import *

focus.application('gnome-panel')
focus.frame('Top Expanded Edge Panel')
click('Places', roleName='menu')
click('Desktop', roleName='menu item')
focus.application('nautilus')
focus.frame('Desktop - File Browser')
click('Edit', roleName='menu')
click('Preferences', roleName='menu item')
focus.dialog('File Management Preferences')
click('Icon View', roleName='menu item')
click('List View', roleName='menu item')
click('By Name', roleName='menu item')
click('By Modification Date', roleName='menu item')
click('100%', roleName='menu item')
click('25%', roleName='menu item')
click('Behavior', roleName='page tab', raw=True)
click('Display', roleName='page tab', raw=True)
click('Preview', roleName='page tab', raw=True)
click('Close', roleName='push button')
click('View as Icons', roleName='menu item')
click('View as List', roleName='menu item')
click('Close', roleName='push button')
