Skip to content

URL schemes and dependencies #3476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions examples/cdp_mode/raw_indeed.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from seleniumbase import SB

with SB(uc=True, test=True) as sb:
url = "https://www.indeed.com/companies/search"
sb.activate_cdp_mode(url)
sb.sleep(2)
sb.uc_gui_click_captcha()
sb.sleep(1)
company = "NASA Jet Propulsion Laboratory"
sb.press_keys('input[data-testid="company-search-box"]', company)
sb.click('button[type="submit"]')
sb.click('a:contains("%s")' % company)
sb.sleep(3)
sb.cdp.highlight('div[itemprop="name"]')
sb.sleep(1)
sb.cdp.highlight('h2:contains("About the company")')
sb.sleep(2)
for i in range(10):
sb.cdp.scroll_down(12)
sb.sleep(0.14)
info = sb.find_element('[data-testid="AboutSection-section"]')
soup = sb.get_beautiful_soup(info.get_html()).get_text("\n").strip()
print("*** %s: ***\n%s" % (company, soup.replace("\n:", ":")))
2 changes: 1 addition & 1 deletion mkdocs_build/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pathspec==0.12.1
Babel==2.17.0
paginate==0.5.7
mkdocs==1.6.1
mkdocs-material==9.6.1
mkdocs-material==9.6.2
mkdocs-exclude-search==0.6.6
mkdocs-simple-hooks==0.1.5
mkdocs-material-extensions==1.3.1
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pytest-xdist==3.6.1
parameterized==0.9.0
behave==1.2.6
soupsieve==2.6
beautifulsoup4==4.12.3
beautifulsoup4==4.13.3
pyotp==2.9.0
python-xlib==0.33;platform_system=="Linux"
markdown-it-py==3.0.0
Expand Down
2 changes: 1 addition & 1 deletion seleniumbase/__version__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# seleniumbase package
__version__ = "4.34.6"
__version__ = "4.34.7"
4 changes: 3 additions & 1 deletion seleniumbase/fixtures/page_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ def looks_like_a_page_url(url):
self.get_element(URL_AS_A_SELECTOR) if the input is not a URL."""
return url.startswith((
"http:", "https:", "://", "about:", "blob:", "chrome:",
"data:", "edge:", "file:", "view-source:"
"data:", "edge:", "file:", "view-source:", "chrome-search:",
"chrome-extension:", "chrome-untrusted:", "isolated-app:",
"chrome-devtools:", "devtools:"
))


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
'parameterized==0.9.0',
"behave==1.2.6",
'soupsieve==2.6',
"beautifulsoup4==4.12.3",
"beautifulsoup4==4.13.3",
'pyotp==2.9.0',
'python-xlib==0.33;platform_system=="Linux"',
'markdown-it-py==3.0.0',
Expand Down