Skip to content

Disable automation in webdriver #277

@BobSmith2356

Description

@BobSmith2356

This is a question more related to the WebDriver and not the crate.

I'm currently trying to move my project from rust-headless-chrome- to fantoccini so that users have more options as to what browser they want to use. However, one of the sites that my app goes to automatically blocks all automated browsers. In rust-headless-chrome I can start the browser without the --enable-automation flag and it works. Is there a way I can do something similar with chromedriver, etc. Or alternatively, is it possible to run some JS before the page loads to hide the window.navigator.webdriver property?

Thanks,
Bob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions