Skip to content

Commit

Permalink
update param
Browse files Browse the repository at this point in the history
  • Loading branch information
bashangbasir committed Jan 9, 2024
1 parent 624cd39 commit 67e3cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylenium/performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def mark(self, mark):
js = 'return performance.mark("{}");'.format(mark)
self._wait().until(lambda driver: driver.execute_script(js), "PerformanceMark not generated yet")

def measure(self, start) -> float:
def measure(self, mark) -> float:

js = 'return performance.measure("Measure", "{}");'.format(start)
js = 'return performance.measure("Measure", "{}");'.format(mark)
measured = self._wait().until(lambda driver: driver.execute_script(js), "PerformanceMeasure not generated yet")
return PerformanceMeasure(**measured).duration

Expand Down

0 comments on commit 67e3cb2

Please sign in to comment.