We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98dee17 commit e556c4aCopy full SHA for e556c4a
src/loadgenerator/locustfile.py
@@ -142,12 +142,12 @@ class WebsiteBrowserUser(PlaywrightUser):
142
143
@task
144
@pw
145
- async def open_cart_page_and_click_button(self, page: PageWithRetry):
+ async def open_cart_page_and_change_currency(self, page: PageWithRetry):
146
try:
147
page.on("console", lambda msg: print(msg.text))
148
await page.route('**/*', add_baggage_header)
149
await page.goto("/cart", wait_until="domcontentloaded")
150
- await page.click('button:has-text("Continue Shopping")', wait_until="domcontentloaded")
+ await page.select_option('[name="currency_code"]', 'CHF')
151
await page.wait_for_timeout(2000) # giving the browser time to export the traces
152
except:
153
pass
0 commit comments