Skip to content

Commit 1021bc6

Browse files
committed
Update examples
1 parent eeff476 commit 1021bc6

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

examples/cdp_mode/raw_albertsons.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@
2424
info_selector = 'span[data-test-id*="recipe-thumb-title"]'
2525
items = sb.cdp.find_elements("%s %s" % (item_selector, info_selector))
2626
for item in items:
27-
sb.sleep(0.03)
28-
item.scroll_into_view()
29-
sb.sleep(0.025)
27+
sb.sleep(0.06)
3028
if required_text in item.text:
3129
item.flash(color="44CC88")
3230
sb.sleep(0.025)

examples/cdp_mode/raw_nordstrom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
sb.sleep(2.2)
1212
for i in range(16):
1313
sb.cdp.scroll_down(16)
14-
sb.sleep(0.16)
14+
sb.sleep(0.14)
1515
print('*** Nordstrom Search for "%s":' % search)
1616
unique_item_text = []
1717
items = sb.cdp.find_elements("article")

examples/cdp_mode/raw_tiktok.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
print(sb.cdp.get_text('h2[data-e2e="user-bio"]'))
1212
for i in range(55):
1313
sb.cdp.scroll_down(12)
14-
sb.sleep(0.06)
14+
sb.sleep(0.05)
1515
sb.sleep(1)

examples/raw_pixelscan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from seleniumbase import SB
22

33
with SB(uc=True, incognito=True, test=True) as sb:
4-
sb.driver.uc_open_with_reconnect("https://pixelscan.net/", 10)
4+
sb.driver.uc_open_with_reconnect("https://pixelscan.net/", 7)
55
sb.remove_elements("div.banner") # Remove the banner
66
sb.remove_elements("jdiv") # Remove chat widgets
77
no_automation_detected = "No automation framework detected"

0 commit comments

Comments
 (0)