Skip to content

Commit e556c4a

Browse files
committed
Revert - Removed select option event
1 parent 98dee17 commit e556c4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/loadgenerator/locustfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,12 @@ class WebsiteBrowserUser(PlaywrightUser):
142142

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

0 commit comments

Comments
 (0)