Skip to content

Commit 35311c0

Browse files
committed
Explain how Firefox uses user profiles
This extends the Firefox profile documentation by explaining how Selenium works when supplying an existing profile directory. Since profiles are not cleaned up by Selenium, it also describes how they can be explicitly removed by the user.
1 parent a2be111 commit 35311c0

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Diff for: website_and_docs/content/documentation/webdriver/browsers/firefox.en.md

+8
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ options.profile = FirefoxProfile()
135135
driver = FirefoxDriver(options)
136136
{{< /tab >}}
137137
{{< /tabpane >}}
138+
**Note**: If you want to use an existing firefox profile, you can pass in the path to that profile. Every time you
139+
run your program, Selenium will make a new copy of the profile and use it instead of your original one. The copies
140+
are not cleaned up explicitly by Selenium, they should eventually be cleaned up by the operating system. However,
141+
if you want to remove the copy explicitly, the path of the copy will be exposed by the `FirefoxProfile` object.
142+
Check the language specific implementation to see how to retrieve that location.
143+
144+
Please refer to the official [Firefox documentation](https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile)
145+
for instructions on how to find the directory of your profile.
138146

139147

140148
## Service

Diff for: website_and_docs/content/documentation/webdriver/browsers/firefox.zh-cn.md

+9
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ driver = RemoteWebDriver(options)
139139
{{< /tabpane >}}
140140
</div>
141141

142+
**Note**: If you want to use an existing firefox profile, you can pass in the path to that profile. Every time you
143+
run your program, Selenium will make a new copy of the profile and use it instead of your original one. The copies
144+
are not cleaned up explicitly by Selenium, they should eventually be cleaned up by the operating system. However,
145+
if you want to remove the copy explicitly, the path of the copy will be exposed by the `FirefoxProfile` object.
146+
Check the language specific implementation to see how to retrieve that location.
147+
148+
Please refer to the official [Firefox documentation](https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile)
149+
for instructions on how to find the directory of your profile.
150+
142151

143152
## Service
144153

0 commit comments

Comments
 (0)