code: def get_window_position(self, windowHandle='current'):
          
          if self.w3c:
              if windowHandle != 'current':
                  warnings.warn("Only 'current' window is supported for W3C compatibile browsers.")
              position = self.get_window_rect()
          else:
              position = self.execute(Command.GET_WINDOW_POSITION,
                                      {'windowHandle': windowHandle})['value']
  
          return {k: position[k] for k in ('x', 'y')}
docs: Gets the x,y position of the current window.
  
          :Usage:
              ::
  
                  driver.get_window_position()