Selenium with Firefox + Saved Passwords?

dreadpixel

Banned - Selling outside marketplace
Joined
Jul 27, 2010
Messages
2,502
Reaction score
1,178
Hello.. Im wondering if this works or someone has tried before.
As you know (if you are answering) selenium is for testing on browser, so if you load a bot and do specific actions it will open Firefox and do what you specify.
So the question here is:
If I have a Windows 10 VPS working on, and I install Firefox and put all saved passwords for different websites just to click connect button using the saved passwords, or store cookies/cache/sessions, etc.

When I open a new instance or run a script, will that remember all my records previously configured?
For example, if I already connected to Facebook, and when the bot closes and then when it opens again, will it start a new session and forget the previous cookies?

Thanks.
 
no, just tell your bot the username and password it should be simple
 
If you close driver ,it will forget the previous cookies so you need create profile or save them.
 
You need to specify the correct Firefox profile in your Selenium session.

Read more about it here:
Code:
http://www.guru99.com/firefox-profile-selenium-webdriver.html
 
Back
Top