0

I tried to open browser with selenium with

driver = webdriver.Firefox()
driver.get("http://www.python.org")

But, when i did it, it open a blank browser without my personalized on firefox. So, have anyway to open Firefox with personalized like manualy open firefox? Thanks!

AlphaWolf
  • 395
  • 2
  • 7
  • 16

1 Answers1

0

You need to load the personalized firefox profile before starting the firefox browser. Below is the code:

/* Creating an instance of FirefoxProfile */
firefox_Profile = webdriver.FirefoxProfile('C:\\Users\\abcd\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\96e5mzk0.Default')

/* Passing the firefox profile in the webdriver*/
browser = webdriver.Firefox(firefox_Profile)
Alok
  • 1,441
  • 4
  • 20
  • 31
  • It work, can open profile with this, but it still cannot load page with `browser.get("http://www.python.org")` – AlphaWolf Nov 23 '16 at 14:39