File tree 2 files changed +20
-1
lines changed
website_and_docs/content/documentation/webdriver/browsers
2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,16 @@ options.profile = FirefoxProfile()
135
135
driver = FirefoxDriver(options)
136
136
{{< /tab >}}
137
137
{{< /tabpane >}}
138
-
138
+ ** Note** : Whether you create an empty ` FirefoxProfile ` or point it to the directory of your own profile, Selenium
139
+ will create a temporary directory to store either the data of the new profile or a copy of your existing one. Every
140
+ time you run your program, a different temporary directory will be created. These directories are not cleaned up
141
+ explicitly by Selenium, they should eventually get removed by the operating system. However, if you want to remove
142
+ the copy manually (e.g. if your profile is large in size), the path of the copy is exposed by the ` FirefoxProfile `
143
+ object. Check the language specific implementation to see how to retrieve that location.
144
+
145
+ If you want to use an existing Firefox profile, you can pass in the path to that profile. Please refer to the official
146
+ [ Firefox documentation] ( https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile )
147
+ for instructions on how to find the directory of your profile.
139
148
140
149
## Service
141
150
Original file line number Diff line number Diff line change @@ -139,6 +139,16 @@ driver = RemoteWebDriver(options)
139
139
{{< /tabpane >}}
140
140
</div >
141
141
142
+ ** Note** : Whether you create an empty ` FirefoxProfile ` or point it to the directory of your own profile, Selenium
143
+ will create a temporary directory to store either the data of the new profile or a copy of your existing one. Every
144
+ time you run your program, a different temporary directory will be created. These directories are not cleaned up
145
+ explicitly by Selenium, they should eventually get removed by the operating system. However, if you want to remove
146
+ the copy manually (e.g. if your profile is large in size), the path of the copy is exposed by the ` FirefoxProfile `
147
+ object. Check the language specific implementation to see how to retrieve that location.
148
+
149
+ If you want to use an existing Firefox profile, you can pass in the path to that profile. Please refer to the official
150
+ [ Firefox documentation] ( https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile )
151
+ for instructions on how to find the directory of your profile.
142
152
143
153
## Service
144
154
You can’t perform that action at this time.
0 commit comments