def activatewindow(self, window_name):
window_handle = self._get_window_handle(window_name)<EOL>self._grabfocus(window_handle)<EOL>return <NUM_LIT:1><EOL>
Activate window.

@param window_name: Window name to look for, either full name,
LDTP's name convention, or a Unix glob.
@type window_name: string

@return: 1 on success.
@rtype: integer