parameters: (self)
return_statement: return self._main_frame_id
docstring: Returns the main frame ID.
docstring_summary: Returns the main frame ID.
docstring_tokens: Returns the main frame ID .
function: def GetMainFrameID(self):
      """Returns the main frame ID."""
      if not self._main_frame_id:
        navigation_start_events = self.GetMatchingEvents(
            'blink.user_timing', 'navigationStart')
        first_event = min(navigation_start_events, key=lambda e: e.start_msec)
        self._main_frame_id = first_event.args['frame']
  
      return self._main_frame_id
function_tokens: def GetMainFrameID ( self ) : if not self . _main_frame_id : navigation_start_events = self . GetMatchingEvents ( 'blink.user_timing' , 'navigationStart' ) first_event = min ( navigation_start_events , key = lambda e : e . start_msec ) self . _main_frame_id = first_event . args [ 'frame' ] return self . _main_frame_id