Skip to content

Commit 5ebb243

Browse files
committed
Update a CDP Mode example
1 parent 718e40a commit 5ebb243

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/cdp_mode/raw_cdp_walmart.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
url = "https://www.walmart.com/"
44
sb = sb_cdp.Chrome(url, locale="en", guest=True)
55
sb.sleep(3)
6+
continue_button = 'button:contains("Continue shopping")'
7+
if sb.is_element_visible(continue_button):
8+
sb.gui_click_element(continue_button)
9+
sb.sleep(0.6)
610
sb.click('input[aria-label="Search"]')
711
sb.sleep(1.4)
812
search = "Settlers of Catan Board Game"

0 commit comments

Comments
 (0)