Skip to content
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

使用chrome数据存储路径,每次依旧要登录 #1

Open
Leonhardt92 opened this issue Aug 25, 2022 · 0 comments
Open

使用chrome数据存储路径,每次依旧要登录 #1

Leonhardt92 opened this issue Aug 25, 2022 · 0 comments

Comments

@Leonhardt92
Copy link

    options = new LaunchOptionsBuilder()
            .withArgs(Arrays.asList("--no-sandbox", "--disable-setuid-sandbox", "--passive-listeners-default",
                    "--disable-gpu"))
            // 这里换成自己的chrome数据存储路径,这样登录一次后,就不需要每次都登录
            .withUserDataDir("C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\")
            .withHeadless(false)
            .withIgnoreDefaultArgs(Arrays.asList("--enable-automation"))
            .withExecutablePath("C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe").build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant