Comments (1)
This script is still bypassing Cloudflare for me with headless2=True
:
from seleniumbase import SB
with SB(uc=True, headless2=True, test=True) as sb:
url = "https://gitlab.com/users/sign_in"
sb.driver.uc_open_with_reconnect(url, 3)
if not sb.is_text_visible("Username", '[for="user_login"]'):
sb.driver.uc_open_with_reconnect(url, 4)
sb.assert_text("Username", '[for="user_login"]', timeout=3)
sb.assert_element('label[for="user_login"]')
sb.highlight('button:contains("Sign in")')
sb.highlight('h1:contains("GitLab.com")')
sb.post_message("SeleniumBase wasn't detected", duration=4)
If for whatever reason headless2=True
isn't enough, you can always use SB(uc=True, xvfb=True)
to get UC Mode working on a headless display without headless mode by using a virtual display:
from seleniumbase import SB
with SB(uc=True, xvfb=True, test=True) as sb:
sb.driver.uc_open_with_reconnect("https://pixelscan.net", 10)
from seleniumbase.
Related Issues (20)
- Can't get passed cloudflare using UC mode HOT 1
- UC Mode: Video 2 is now on YouTube! HOT 3
- Request headers not changed if UC mode and Cloudflare HOT 3
- Cannot perform click on a day on datepicker HOT 1
- try to pass ChromeDriverManager, with error HOT 1
- UC detected on linux HOT 4
- SSL Errors on MacOS when downloading chromedriver HOT 1
- Driver Exits with STATUS (selenium-grid-hub (terminated by SIGTERM)) HOT 5
- Exporting recorded script to json HOT 3
- Not able to run on ARM based Ubuntu HOT 1
- Excessive CPU and RAM usage HOT 3
- Highlight all element from sb.find_visible_elements() using for loop HOT 6
- Improvements to highlighting elements HOT 1
- Not able to Login on ticketmaster HOT 3
- Slow opening Chrome (1 minute) on Ubuntu headless HOT 9
- Interrupting the recorder from outside the terminal HOT 1
- How to bypass reCAPTCHA HOT 4
- Add argument to Chromium with Driver class HOT 1
- When using ThreadPoolExecutor, a minor problem occurs. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seleniumbase.