We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ebb243 commit 1cc80c0Copy full SHA for 1cc80c0
examples/cdp_mode/playwright/raw_walmart_sync.py
@@ -9,6 +9,9 @@
9
browser = p.chromium.connect_over_cdp(endpoint_url)
10
page = browser.contexts[0].pages[0]
11
page.wait_for_timeout(2800)
12
+ continue_button = 'button:has-text("Continue shopping")'
13
+ if page.locator(continue_button).count() > 0:
14
+ page.click(continue_button)
15
page.click('input[aria-label="Search"]')
16
page.wait_for_timeout(1800)
17
search = "Settlers of Catan Board Game"
@@ -28,6 +31,9 @@
28
31
page.wait_for_timeout(1200)
29
32
page.wait_for_selector('[data-item-id]', timeout=10000)
30
33
page.wait_for_timeout(600)
34
+ for i in range(17):
35
+ sb.scroll_down(16)
36
+ sb.sleep(0.05)
37
items = page.locator('[data-item-id]')
38
for i in range(items.count()):
39
item = items.nth(i)
0 commit comments