#NEWLINE# def _record_page_timings( self , driver ) : #NEWLINE# #INDENT# '\n        Saves recorded page timings to self.timings to be added to the har file\n        on save.\n\n        Returns:\n            None\n        ' #NEWLINE# script = dedent ( '\n            var performance = window.performance || {};\n            var timings = performance.timing || {};\n            return timings;\n        ' ) #NEWLINE# timings = driver . execute_script ( script ) #NEWLINE# self . _page_timings . append ( timings )