Skip to content

Commit

Permalink
Revert - Removed select option event
Browse files Browse the repository at this point in the history
  • Loading branch information
jordibisbal8 committed Jan 29, 2024
1 parent 98dee17 commit e556c4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loadgenerator/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ class WebsiteBrowserUser(PlaywrightUser):

@task
@pw
async def open_cart_page_and_click_button(self, page: PageWithRetry):
async def open_cart_page_and_change_currency(self, page: PageWithRetry):
try:
page.on("console", lambda msg: print(msg.text))
await page.route('**/*', add_baggage_header)
await page.goto("/cart", wait_until="domcontentloaded")
await page.click('button:has-text("Continue Shopping")', wait_until="domcontentloaded")
await page.select_option('[name="currency_code"]', 'CHF')
await page.wait_for_timeout(2000) # giving the browser time to export the traces
except:
pass
Expand Down

0 comments on commit e556c4a

Please sign in to comment.