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 f8036a1 commit 04d04f0Copy full SHA for 04d04f0
1 file changed
examples/cdp_mode/raw_kohls.py
@@ -1,16 +1,13 @@
1
from seleniumbase import SB
2
3
with SB(uc=True, test=True, locale="en", incognito=True) as sb:
4
- url = "https://www.kohls.com/"
5
- sb.activate_cdp_mode(url, ad_block=True)
6
- sb.sleep(2.6)
7
search = "Mickey Mouse Blanket"
8
req_1 = "Mickey"
9
req_2 = "Blanket"
10
- if not sb.is_element_present('input[name="search"]'):
11
- sb.refresh()
12
13
- sb.press_keys('input[name="search"]', search + "\n")
+ s2 = "+".join(search.split(" "))
+ q = "?submit-search=web-regular&search=%s" % s2
+ url = "https://www.kohls.com/search.jsp%s" % q
+ sb.activate_cdp_mode(url, ad_block=True)
14
sb.sleep(5)
15
item_selector = 'div[data-testid*="wallet-wrapper"]'
16
if not sb.is_element_present(item_selector):
0 commit comments