diff options
author | dobey <dobey> | 2006-11-22 19:15:39 +0000 |
---|---|---|
committer | dobey <dobey> | 2006-11-22 19:15:39 +0000 |
commit | 14b3074bcb903dc5d0a43420507f638dddb40888 (patch) | |
tree | 00dc59060fa9b530dbd46b851f11c46d68c79a97 | |
parent | 5784ef52dcccd778a893aa2f85ab79ed1545b3a3 (diff) |
2006-11-22 Rodney Dawes <dobey@novell.com>
* scripts/banshee.py: Update to work with banshee 0.11.2 as well
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | scripts/banshee.py | 20 |
2 files changed, 19 insertions, 5 deletions
@@ -1,3 +1,7 @@ +2006-11-22 Rodney Dawes <dobey@novell.com> + + * scripts/banshee.py: Update to work with banshee 0.11.2 as well + 2006-11-09 Rodney Dawes <dobey@novell.com> * python/A11yTestUtils.py (a11y_find_panel_with_applet): Add a new diff --git a/scripts/banshee.py b/scripts/banshee.py index 2211b22..66652bc 100755 --- a/scripts/banshee.py +++ b/scripts/banshee.py @@ -9,6 +9,8 @@ program_name = 'banshee' window_title = '*Banshee Music Player' a11y_test_init (program_name) + +time.sleep (10) guiexist (window_title) a11y_scan_window (window_title) @@ -23,16 +25,24 @@ selectmenuitem (window_title, 'mnuEdit;mnuPlugins') a11y_scan_dialog ('dlgBansheePlugins', 'btnClose') selectmenuitem (window_title, 'mnuEdit;mnuPreferences') -a11y_scan_dialog ('*Preferences', 'btnCancel') +if (objectexist ('*Preferences', 'btnCancel')): + a11y_scan_dialog ('*Preferences', 'btnCancel') +else: + a11y_scan_dialog ('*Preferences', 'btnClose') selectmenuitem (window_title, 'mnuView;mnuColumns') a11y_scan_dialog ('*ChooseColumns', 'btnClose') -selectmenuitem (window_title, 'mnuView;mnuLoggedEventsViewer') -a11y_scan_dialog ('*LogViewer', 'btnClose') +if (objectexist (window_title, 'mnuView;mnuLoggedEventsViewer')): + selectmenuitem (window_title, 'mnuView;mnuLoggedEventsViewer') + a11y_scan_dialog ('*LogViewer', 'btnClose') -selectmenuitem (window_title, 'mnuHelp;mnuVersionInformation') -a11y_scan_dialog ('*AssemblyVersionInformation', 'btnClose') +if (objectexist (window_title, 'mnuHelp;mnuVersionInformation')): + selectmenuitem (window_title, 'mnuHelp;mnuVersionInformation') + a11y_scan_dialog ('*AssemblyVersionInformation', 'btnClose') +else: + selectmenuitem (window_title, 'mnuHelp;mnuAbout') + a11y_scan_dialog ('*About*Banshee', 'btnClose') selectmenuitem (window_title, 'mnuMusic;mnuQuit') |