Skip to content

Commit 4b93ae0

Browse files
committed
Removed select option event
1 parent d389499 commit 4b93ae0

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_change_currency(self, page: PageWithRetry):
145+
async def open_cart_page_and_click_button(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.select_option('[name="currency_code"]', 'CHF')
150+
await page.click('button:has-text("Continue Shopping")', wait_until="domcontentloaded")
151151
await page.wait_for_timeout(2000) # giving the browser time to export the traces
152152
except:
153153
pass

0 commit comments

Comments
 (0)