Skip to content

Commit

Permalink
Update CDP Mode examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmintz committed Oct 28, 2024
1 parent 19c4ae3 commit 5a8ed73
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/cdp_mode/raw_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ async def main():
sb.sleep(2.5)
sb.remove_elements("msm-cookie-banner")
sb.sleep(1.5)
sb.press_keys('input[data-test-id*="search"]', "Amsterdam")
location = "Amsterdam"
sb.press_keys('input[data-test-id*="search"]', location)
sb.sleep(1)
sb.click('input[data-test-id*="search"]')
sb.sleep(2)
sb.click('span[data-test-id*="autocomplete"]')
sb.sleep(5)
Expand Down
2 changes: 2 additions & 0 deletions examples/cdp_mode/raw_cdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def main():
sb.sleep(1.5)
location = "Amsterdam"
sb.press_keys('input[data-test-id*="search"]', location)
sb.sleep(1)
sb.click('input[data-test-id*="search"]')
sb.sleep(2)
sb.click('span[data-test-id*="autocomplete"]')
sb.sleep(5)
Expand Down
2 changes: 2 additions & 0 deletions examples/cdp_mode/raw_cdp_with_sb.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
sb.sleep(1.5)
location = "Amsterdam"
sb.press_keys('input[data-test-id*="search"]', location)
sb.sleep(1)
sb.click('input[data-test-id*="search"]')
sb.sleep(2)
sb.click('span[data-test-id*="autocomplete"]')
sb.sleep(5)
Expand Down

0 comments on commit 5a8ed73

Please sign in to comment.