For selecting Editor tab with respect to gedit preferences
selecttab ('dlgPreferences', 'ptlPreferences', 'Editor')