Skip to content

Commit

Permalink
Added skipping line + renamed event
Browse files Browse the repository at this point in the history
  • Loading branch information
jordibisbal8 authored and jordi-bisbal committed Nov 17, 2023
1 parent 4e671a6 commit 45e0a4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/loadgenerator/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ async def open_home_browser_page(self, page: PageWithRetry):
try:
async with event(self, "Load up Astronomy Shop home page"):
await page.goto("/")
async with event(self, "Click on a button"):
async with event(self, "Click on Go Shopping button"):
async with page.expect_navigation(wait_until="domcontentloaded"):
await page.click('button:has-text("Go Shopping")')
except:
pass
pass

0 comments on commit 45e0a4e

Please sign in to comment.