![]() You can then modify the profile settings as desired, and ChromeDriver can use the profile in the future. If the path doesn't exist, Chrome will create a new profile in the specified location. You can create your own custom profile by just running Chrome (on the command-line or through ChromeDriver) with the user-data-dir switch set to some new directory. Options.addArguments(" user-data-dir=/path/to/your/custom/profile ") If the latter, you can use the user-data-dir Chrome command-line switch to tell Chrome which profile to use:ĬhromeOptions options = new ChromeOptions() If the former, you can use the 'chrome.prefs' capability (described later below) to specify preferences that will be applied after Chrome starts. ![]() At times you may want to set special preferences or just use a custom profile altogether. Use custom profile (also called user data directory)īy default, ChromeDriver will create a new temporary profile for each session.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |