Giter Club home page Giter Club logo

Comments (10)

jorisstander avatar jorisstander commented on June 17, 2024 1

I did not know that. Thank you, it worked!

from seleniumbase.

Tongcheng avatar Tongcheng commented on June 17, 2024 1

Thanks a lot for the pointer! @mdmintz

from seleniumbase.

mdmintz avatar mdmintz commented on June 17, 2024

Sounds like you're trying to avoid detection after clicking a button to log in to a site.
You need to use the sb.driver.uc_click(selector) method in order to remain undetected.

Try these examples that use it:

from seleniumbase.

jorisstander avatar jorisstander commented on June 17, 2024

I thought that was the issue at the start too. So I tried doing everything manually except for starting up the browser instance. So going to the website is manually -> filling in the information and clicking the log in, but still it knows i'm using a bot instance. So 0 interaction with a script and the target website. So it made me think it's maybe the settings of the browser which make it flagged as bot..

from seleniumbase.

mdmintz avatar mdmintz commented on June 17, 2024

It's not so much your browser actions that get you detected, but mostly whether Selenium is connected to your browser when a website service is looking for it. UC Mode methods disconnect Selenium from the browser at specific times, and then reconnect after a few seconds (customizable).

If you want to perform manual action while in UC Mode, use this:

sb.driver.uc_open_with_reconnect(url, "breakpoint")

(Type c and press Enter to continue from the breakpoint.)

from seleniumbase.

Tongcheng avatar Tongcheng commented on June 17, 2024

Thanks for the explanation @mdmintz , I'm still amazed and don't fully understand why "reconnect" would work when CF is heavy on a website. Is it due to certain "port" being occupied when selenium is connected to browser and that's how CF detects it (and the reason reconnect works)?

from seleniumbase.

mdmintz avatar mdmintz commented on June 17, 2024

@Tongcheng reconnect() is a combination of three things:

After the WebDriver Service is stopped, Selenium is no longer attached to the web browser, and because of that, website services that try to detect Selenium won't find it.

from seleniumbase.

Tongcheng avatar Tongcheng commented on June 17, 2024

Great explanation @mdmintz ! I am curious if you know fundamentally (deeper inside chrome + selenium), how does detector able to tell "this browser is attached to selenium vs. not"?

from seleniumbase.

Tongcheng avatar Tongcheng commented on June 17, 2024

In other words @mdmintz , I am curious how you come up with idea, because when I did research, all evading direction seems to be "browser fingerprinting" etc., I didn't think it's some more fundamental attribute other than fingerprinting which could be detected

from seleniumbase.

mdmintz avatar mdmintz commented on June 17, 2024

There's an explanation here already: #2213

from seleniumbase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.