code: def get_window_size(self):
          
          if not self._window_size:
              if self.driver_wrapper.is_android_web_test() and self.driver_wrapper.driver.current_context != 'NATIVE_APP':
                  window_width = self.driver_wrapper.driver.execute_script("return window.innerWidth")
                  window_height = self.driver_wrapper.driver.execute_script("return window.innerHeight")
                  self._window_size = {'width': window_width, 'height': window_height}
              else:
                  self._window_size = self.driver_wrapper.driver.get_window_size()
          return self._window_size
docs: Generic method to get window size using a javascript workaround for Android web tests
  
          :returns: dict with window width and height