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

add support for a custom user data dir #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Mar 22, 2020

This will close #90

Current implementation is using a new argument in Chrome$new().

Another choice would be to detect if a --user-data-dir is passed in extra_args and deactivate the creation of new work dir by crrri. Would be oriented toward a more advanced usage.

If provided in user_data_dir, the folder won't be deleted by crrri at the end. A message warn the user (but is inside a promise so print in a weirdly timing)

@yonicd, using this PR will help to test with a custom user data dir.

@RLesur what do you think ? Should we test and improve some usage ?

I know it works well in headful mode, but not sure to check in headless mode as chrome://version url does not work in headless mode.

cderv added 2 commits March 22, 2020 14:55
* as a new argument in Chrome$new()
* add some tests
* new helper function to deactivate verbose in test : without_verbose()
@yonicd
Copy link

yonicd commented Mar 22, 2020

awesome! ty :)

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

Successfully merging this pull request may close these issues.

Allow to load user profile in non-headless mode
2 participants